コード例 #1
0
 public StringElementTraits()
 {
     if (intPtrTraits == null)
     {
         intPtrTraits = TraitFunctions.GetTypeTraits <IntPtr>();
     }
 }
コード例 #2
0
        public EflObjectElementTraits(System.Type concrete)
        {
            if (intPtrTraits == null)
            {
                intPtrTraits = TraitFunctions.GetTypeTraits <IntPtr>();
            }

            concreteType = concrete;
        }
コード例 #3
0
 public Primitive64ElementTraits()
 {
     if (int64Traits == null)
     {
         if (typeof(T) == typeof(Int64)) // avoid infinite recursion
         {
             int64Traits = (IBaseElementTraits <Int64>) this;
         }
         else
         {
             int64Traits = TraitFunctions.GetTypeTraits <Int64>();
         }
     }
 }