/// <summary> /// 反序列化方法(自动生成) /// </summary> public UsingAsDeclaration Deserialize(ref AccelReader reader) { UsingAsDeclaration result = new UsingAsDeclaration(); int index; while (reader.HasNext(out index)) { switch (index) { case 1: result.m_TypeName = reader.ReadGeneric <TypeName>(); break; case 2: result.m_AliasName = reader.ReadString(); break; default: reader.SkipNext(); break; } } result.OnAfterDeserialization(); return(result); }
/// <summary> /// 反序列化方法(自动生成) /// </summary> public StructDeclaration Deserialize(ref AccelReader reader) { StructDeclaration result = new StructDeclaration(); int index; while (reader.HasNext(out index)) { switch (index) { case 1: result.m_Visibility = (TypeVisibility)reader.ReadInt32(); break; case 2: result.m_IsFinal = reader.ReadBoolean(); break; case 3: result.m_IsRef = reader.ReadBoolean(); break; case 4: result.m_IsNested = reader.ReadBoolean(); break; case 5: result.m_IsFieldIndexContinuous = reader.ReadBoolean(); break; case 6: result.m_Name = reader.ReadString(); break; case 7: result.m_Doc = reader.ReadString(); break; case 8: result.m_Size = reader.ReadVariantInt(); break; case 9: result.m_Declarations = reader.ReadGeneric <DeclarationArray>(); break; default: reader.SkipNext(); break; } } result.OnAfterDeserialization(); return(result); }
/// <summary> /// 反序列化方法(自动生成) /// </summary> public TypeName Deserialize(ref AccelReader reader) { TypeName result = new TypeName(); int index; while (reader.HasNext(out index)) { switch (index) { case 1: result.m_RawString = reader.ReadString(); break; case 2: result.m_RawStringWithoutNullableAndArraySuffix = reader.ReadString(); break; case 3: result.m_IsGenericType = reader.ReadBoolean(); break; case 4: result.m_GenericTypeDefinitionName = reader.ReadGeneric <TypeName>(); break; case 5: result.m_GenericParameters = reader.ReadGeneric <TypeName[]>(); break; case 6: result.m_IsNullable = reader.ReadBoolean(); break; case 7: result.m_ArraySuffixCount = reader.ReadVariantInt(); break; default: reader.SkipNext(); break; } } result.OnAfterDeserialization(); return(result); }
/// <summary> /// 反序列化方法(自动生成) /// </summary> public FieldDeclaration Deserialize(ref AccelReader reader) { FieldDeclaration result = new FieldDeclaration(); int index; while (reader.HasNext(out index)) { switch (index) { case 1: result.m_RealType = reader.ReadGeneric <TypeName>(); break; case 2: result.m_Type = reader.ReadGeneric <TypeName>(); break; case 3: result.m_Name = reader.ReadString(); break; case 4: result.m_Doc = reader.ReadString(); break; case 5: result.m_Index = reader.ReadVariantInt(); break; case 6: result.m_IsObsolete = reader.ReadBoolean(); break; case 7: result.m_IsNeverNull = reader.ReadBoolean(); break; default: reader.SkipNext(); break; } } result.OnAfterDeserialization(); return(result); }
/// <summary> /// 反序列化方法(自动生成) /// </summary> public PackageDeclaration Deserialize(ref AccelReader reader) { PackageDeclaration result = new PackageDeclaration(); int index; while (reader.HasNext(out index)) { switch (index) { case 1: result.m_PackageName = reader.ReadString(); break; default: reader.SkipNext(); break; } } result.OnAfterDeserialization(); return(result); }