コード例 #1
0
 public static TypeReferenceContext GetTypeReferenceContext(this InterfacePropertyMappingContext context)
 {
     return(new TypeReferenceContext(context.Definitions)
     {
         GenericParameters = context.GenercisParameters
     });
 }
コード例 #2
0
        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)
            });
        }