public static PersistentParameter Resolve(IParameter source, ITypeResolver typeResolver) { PersistentParameter par = new PersistentParameter (); par.name = source.Name; par.documentation = source.Documentation; par.modifier = source.Modifier; par.returnType = PersistentReturnType.Resolve (source.ReturnType, typeResolver); return par; }
public static PersistentParameter Read(BinaryReader reader, INameDecoder nameTable) { PersistentParameter par = new PersistentParameter (); par.name = PersistentHelper.ReadString (reader, nameTable); par.documentation = PersistentHelper.ReadString (reader, nameTable); par.modifier = (ParameterModifier)reader.ReadByte(); par.returnType = PersistentReturnType.Read (reader, nameTable); return par; }