public static PersistentField Resolve(IField source, ITypeResolver typeResolver) { PersistentField field = new PersistentField (); field.FullyQualifiedName = source.FullyQualifiedName; field.Documentation = source.Documentation; field.modifiers = source.Modifiers; field.returnType = PersistentReturnType.Resolve (source.ReturnType, typeResolver); field.region = source.Region; return field; }
public static PersistentField Read(BinaryReader reader, INameDecoder nameTable) { PersistentField field = new PersistentField (); field.FullyQualifiedName = PersistentHelper.ReadString (reader, nameTable); field.Documentation = PersistentHelper.ReadString (reader, nameTable); field.modifiers = (ModifierEnum)reader.ReadUInt32(); field.returnType = PersistentReturnType.Read (reader, nameTable); field.region = PersistentRegion.Read (reader, nameTable); return field; }