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

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