public MethodMetadata(MethodDTG method) { Name = method.Name; MetadataName = method.MetadataName; ReturnType = TypeMetadata.LoadType(method.SerReturnType); Parameters = method.SerParameters?.Select(p => new ParameterMetadata(p)).ToList(); }
public MethodDb(MethodDTG method) { Name = method.Name; MetadataName = method.MetadataName; if (method.SerReturnType != null) { SerReturnType = TypeDb.LoadType(method.SerReturnType); } SerParameters = method.SerParameters?.Select(p => new ParameterDb(p)).ToList(); }
public SerializableMethod(MethodDTG method) { Name = method.Name; MetadataName = method.MetadataName; if (method.SerReturnType != null) { SerReturnType = SerializableType.LoadType(method.SerReturnType); } SerParameters = method.SerParameters?.Select(p => new SerializableParameter(p)).ToList(); }