修改扩展方法命名空间NewLife.Linq=>System.Ling,以及HashSet的命名空间,保持FX2/FX4的兼容
nnhy authored at 2013-10-24 21:43:45
502.00 B
X_NET20
#if !NET4
using System;
using System.Runtime;
using NewLife.Reflection;

namespace System.Linq
{
    internal class IdentityFunction<TElement>
    {
        public static Func<TElement, TElement> Instance
        {
            get
            {
                return (TElement x) => x;
            }
        }
        [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
        public IdentityFunction() { }
    }
}
#endif