public static Load ( |
||
Input | ||
return | IIEncoder64 |
public static IIEncoder64 Load(BinaryReader Input)
{
byte idType = Input.ReadByte ();
var type = Catalog[idType];
if (type == null) {
var s = String.Format ("IEncoder64GenericIO.Catalog returned null using idType: {0}," +
"is it deprecated?", idType);
throw new ArgumentNullException (s);
}
var coder = (IIEncoder64)Activator.CreateInstance (type);
coder.Load (Input);
return coder;
}