private static Comparer <T> Create() { // The compiler will overwrite the Create method with optimized // instantiation-specific implementation. // This body serves as a fallback when instantiation-specific implementation is unavailable. return(_default = ComparerHelpers.GetUnknownComparer <T>()); }
private static Comparer <T> Create() { #if PROJECTN // The compiler will overwrite the Create method with optimized // instantiation-specific implementation. throw new NotSupportedException(); #else // The compiler will overwrite the Create method with optimized // instantiation-specific implementation. // This body serves as a fallback when instantiation-specific implementation is unavailable. return(_default = ComparerHelpers.GetUnknownComparer <T>()); #endif }