public static TypeReferenceContext GetTypeReferenceContext(this InterfacePropertyMappingContext context) { return(new TypeReferenceContext(context.Definitions) { GenericParameters = context.GenercisParameters }); }
public InterfaceProperty MapProperty(PropertyInfo property, InterfacePropertyMappingContext context) { var name = _propertyNameMapper.GetPropertyName(property); return(new InterfaceProperty(name) { Source = property, Type = _propertyTypeMapper.GetPropertyType(property, context.GetTypeReferenceContext()), Comment = _commentsProvider.GetComment(property) }); }