ソースコード
public static T FirstOrDefault<T> ( this IEnumerable<T> self, Func<T, bool> predicate, T defaultValue ) { foreach ( var x in self ) { if ( predicate( x ) ) return x; } return defaultValue; }
public static T FirstOrDefault<T> ( this IEnumerable<T> self, Func<T, bool> predicate, T defaultValue ) { foreach ( var x in self ) { if ( predicate( x ) ) return x; } return defaultValue; }