public static ParameterMetadata MapToModel(DTGParameterMetadata parameterMetadata) { ParameterMetadata parameterModel = new ParameterMetadata { Name = parameterMetadata.Name, TypeMetadata = TypeMapper.EmitReferenceModel(parameterMetadata.TypeMetadata), }; return(parameterModel); }
public static PropertyMetadata MapToModel(DTGPropertyMetadata propertyMetadata) { PropertyMetadata propertyModel = new PropertyMetadata { Name = propertyMetadata.Name, TypeMetadata = TypeMapper.EmitReferenceModel(propertyMetadata.TypeMetadata) }; return(propertyModel); }
private static TypeMetadata EmitReturnTypeModel(DTGMethodMetadata method) { DTGMethodMetadata methodInfo = method as DTGMethodMetadata; if (methodInfo == null) { return(null); } return(TypeMapper.EmitReferenceModel(methodInfo.ReturnType)); }