コード例 #1
0
 static BinaryPersistors()
 {
     SimplePersistors[typeof(int)]    = new Int32Persistor();
     SimplePersistors[typeof(uint)]   = new UInt32Persistor();
     SimplePersistors[typeof(short)]  = new Int16Persistor();
     SimplePersistors[typeof(ushort)] = new UInt16Persistor();
     SimplePersistors[typeof(byte)]   = new BytePersistor();
     SimplePersistors[typeof(sbyte)]  = new SBytePersistor();
     SimplePersistors[typeof(long)]   = new Int64Persistor();
     SimplePersistors[typeof(ulong)]  = new UInt64Persistor();
     SimplePersistors[typeof(float)]  = new FloatPersistor();
     SimplePersistors[typeof(double)] = new DoublePersistor();
     SimplePersistors[typeof(string)] = new StringPersistor();
     SimplePersistors[typeof(bool)]   = new BoolPersistor();
 }
コード例 #2
0
ファイル: BinaryPersistors.cs プロジェクト: ray2006/WCell
		static BinaryPersistors()
		{
			SimplePersistors[typeof(int)] = new Int32Persistor();
			SimplePersistors[typeof(uint)] = new UInt32Persistor();
			SimplePersistors[typeof(short)] = new Int16Persistor();
			SimplePersistors[typeof(ushort)] = new UInt16Persistor();
			SimplePersistors[typeof(byte)] = new BytePersistor();
			SimplePersistors[typeof(sbyte)] = new SBytePersistor();
			SimplePersistors[typeof(long)] = new Int64Persistor();
			SimplePersistors[typeof(ulong)] = new UInt64Persistor();
			SimplePersistors[typeof(float)] = new FloatPersistor();
			SimplePersistors[typeof(double)] = new DoublePersistor();
			SimplePersistors[typeof(string)] = new StringPersistor();
			SimplePersistors[typeof(bool)] = new BoolPersistor();
		}