Beispiel #1
0
 static UnsafeTypeOpsFactory()
 {
     _type2ops = new Dictionary <Type, object>();
     _type2ops[typeof(sbyte)]    = new SByteUnsafeTypeOps();
     _type2ops[typeof(Byte)]     = new ByteUnsafeTypeOps();
     _type2ops[typeof(short)]    = new Int16UnsafeTypeOps();
     _type2ops[typeof(UInt16)]   = new UInt16UnsafeTypeOps();
     _type2ops[typeof(int)]      = new Int32UnsafeTypeOps();
     _type2ops[typeof(UInt32)]   = new UInt32UnsafeTypeOps();
     _type2ops[typeof(long)]     = new Int64UnsafeTypeOps();
     _type2ops[typeof(UInt64)]   = new UInt64UnsafeTypeOps();
     _type2ops[typeof(Single)]   = new SingleUnsafeTypeOps();
     _type2ops[typeof(Double)]   = new DoubleUnsafeTypeOps();
     _type2ops[typeof(TimeSpan)] = new TimeSpanUnsafeTypeOps();
     _type2ops[typeof(UInt128)]  = new UgUnsafeTypeOps();
 }
 static UnsafeTypeOpsFactory()
 {
     _type2ops = new Dictionary <Type, object>();
     _type2ops[typeof(SByte)]      = new SByteUnsafeTypeOps();
     _type2ops[typeof(DvInt1)]     = new DvI1UnsafeTypeOps();
     _type2ops[typeof(Byte)]       = new ByteUnsafeTypeOps();
     _type2ops[typeof(Int16)]      = new Int16UnsafeTypeOps();
     _type2ops[typeof(DvInt2)]     = new DvI2UnsafeTypeOps();
     _type2ops[typeof(UInt16)]     = new UInt16UnsafeTypeOps();
     _type2ops[typeof(Int32)]      = new Int32UnsafeTypeOps();
     _type2ops[typeof(DvInt4)]     = new DvI4UnsafeTypeOps();
     _type2ops[typeof(UInt32)]     = new UInt32UnsafeTypeOps();
     _type2ops[typeof(Int64)]      = new Int64UnsafeTypeOps();
     _type2ops[typeof(DvInt8)]     = new DvI8UnsafeTypeOps();
     _type2ops[typeof(UInt64)]     = new UInt64UnsafeTypeOps();
     _type2ops[typeof(Single)]     = new SingleUnsafeTypeOps();
     _type2ops[typeof(Double)]     = new DoubleUnsafeTypeOps();
     _type2ops[typeof(DvTimeSpan)] = new DvTimeSpanUnsafeTypeOps();
     _type2ops[typeof(UInt128)]    = new UgUnsafeTypeOps();
 }