public static ReflectedType MakeDynamicType() { if (ObjectType == null) { ReflectedType res = new OpsReflectedType("object", typeof(object), typeof(ObjectOps), typeof(object)); if (Interlocked.CompareExchange<ReflectedType>(ref ObjectType, res, null) == null) { return res; } } return ObjectType; }
public static DynamicType MakeDynamicType() { if (SByteType == null) { OpsReflectedType ort = new OpsReflectedType("SByte", typeof(SByte), typeof(SByteOps), null); if (Interlocked.CompareExchange<ReflectedType>(ref SByteType, ort, null) == null) { return ort; } } return SByteType; }
public static DynamicType MakeDynamicType() { if (Int64Type == null) { OpsReflectedType ort = new OpsReflectedType("Int64", typeof(Int64), typeof(Int64Ops), null); if (Interlocked.CompareExchange<ReflectedType>(ref Int64Type, ort, null) == null) { return ort; } } return Int64Type; }
public static ReflectedType MakeDynamicType(ReflectedType type) { if (BoolType == null) { OpsReflectedType ret = new OpsReflectedType("bool", typeof(bool), typeof(BoolOps), null, new CallTarget1(FastNew)); if (Interlocked.CompareExchange<ReflectedType>(ref BoolType, ret, null) == null) return ret; } return BoolType; }
public static ReflectedType MakeDynamicType() { if (FloatType == null) { ReflectedType res = new OpsReflectedType("float", typeof(double), typeof(FloatOps), typeof(ExtensibleFloat)); if (Interlocked.CompareExchange<ReflectedType>(ref FloatType, res, null) == null) return res; } return FloatType; }
public static ReflectedType MakeDynamicType() { if (LongType == null) { ReflectedType res = new OpsReflectedType("long", typeof(BigInteger), typeof(LongOps), typeof(ExtensibleLong)); if (Interlocked.CompareExchange<ReflectedType>(ref LongType, res, null) == null) return res; } return LongType; }
public static ReflectedType MakeDynamicType() { if (StringType == null) { OpsReflectedType ret = new OpsReflectedType("str", typeof(string), typeof(StringOps), typeof(ExtensibleString), new CallTarget2(FastNew)); if (Interlocked.CompareExchange<ReflectedType>(ref StringType, ret, null) == null) return ret; } return StringType; }
public static DynamicType MakeDynamicType() { if (UInt32Type == null) { OpsReflectedType ort = new OpsReflectedType("UInt32", typeof(UInt32), typeof(UInt32Ops), null); if (Interlocked.CompareExchange<ReflectedType>(ref UInt32Type, ort, null) == null) { return ort; } } return UInt32Type; }
public static ReflectedType MakeDynamicType() { if (IntType == null) { OpsReflectedType ret = new OpsReflectedType("int", typeof(int), typeof(IntOps), typeof(ExtensibleInt), new CallTarget1(FastNew)); if (Interlocked.CompareExchange<ReflectedType>(ref IntType, ret, null) == null) return ret; } return IntType; }