public static GomType Load(GomBinaryReader reader, bool fromGom = true) { GomTypeId typeId = (GomTypeId)reader.ReadByte(); GomTypeLoaders.IGomTypeLoader gomTypeLoader; if (!gomTypeLoaderMap.TryGetValue(typeId, out gomTypeLoader)) { throw new InvalidOperationException(String.Format("Unknown GomType with Type ID {0}", (byte)typeId)); } return(gomTypeLoader.Load(reader, fromGom)); }
//public UInt64 ReferenceId { get; private set; } //public GomObject ReferenceObject { get; private set; } //public GomType ContainedType { get; private set; } //public GomType MappedType { get; private set; } protected GomType(GomTypeId typeId) { this.TypeId = typeId; }