Skip to main content

MetadataTypesGenerator

Assembly: ServiceStack.dll​
View Source​
Declaration
public class MetadataTypesGenerator

Properties​

AttributeConverters​

View Source​
Declaration
public static Dictionary<Type, Func<Attribute, MetadataAttribute>> AttributeConverters { get; }

Methods​

GetMetadataTypes(IRequest, Func<Operation, Boolean>)​

View Source​
Declaration
public MetadataTypes GetMetadataTypes(IRequest req, Func<Operation, bool> predicate = null)
Returns​

ServiceStack.MetadataTypes

Parameters​
TypeName
ServiceStack.Web.IRequestreq
System.Func<ServiceStack.Host.Operation,System.Boolean>predicate

ToTypeName(Type)​

View Source​
Declaration
public MetadataTypeName ToTypeName(Type type)
Returns​

ServiceStack.MetadataTypeName

Parameters​
TypeName
System.Typetype

ToFlattenedType(Type)​

View Source​
Declaration
public MetadataType ToFlattenedType(Type type)
Returns​

ServiceStack.MetadataType

Parameters​
TypeName
System.Typetype

ToType(Type)​

View Source​
Declaration
public MetadataType ToType(Type type)
Returns​

ServiceStack.MetadataType

Parameters​
TypeName
System.Typetype

ToExactType(Type)​

View Source​
Declaration
public MetadataType ToExactType(Type type)
Returns​

ServiceStack.MetadataType

Parameters​
TypeName
System.Typetype

GetEnumMember(Type, String)​

View Source​
Declaration
public static FieldInfo GetEnumMember(Type type, string name)
Returns​

System.Reflection.FieldInfo

Parameters​
TypeName
System.Typetype
System.Stringname

ToAttributes(Type)​

View Source​
Declaration
public List<MetadataAttribute> ToAttributes(Type type)
Returns​

System.Collections.Generic.List<ServiceStack.MetadataAttribute>

Parameters​
TypeName
System.Typetype

ToProperties(Type)​

View Source​
Declaration
public List<MetadataPropertyType> ToProperties(Type type)
Returns​

System.Collections.Generic.List<ServiceStack.MetadataPropertyType>

Parameters​
TypeName
System.Typetype

GetNamespacesUsed(Type)​

View Source​
Declaration
public HashSet<string> GetNamespacesUsed(Type type)
Returns​

System.Collections.Generic.HashSet<System.String>

Parameters​
TypeName
System.Typetype

IncludeAttrsFilter(Attribute)​

View Source​
Declaration
public bool IncludeAttrsFilter(Attribute x)
Returns​

System.Boolean

Parameters​
TypeName
System.Attributex

ToAttributes(Object[])​

View Source​
Declaration
public List<MetadataAttribute> ToAttributes(object[] attrs)
Returns​

System.Collections.Generic.List<ServiceStack.MetadataAttribute>

Parameters​
TypeName
System.Object[]attrs

ToAttributes(IEnumerable<Attribute>)​

View Source​
Declaration
public List<MetadataAttribute> ToAttributes(IEnumerable<Attribute> attrs)
Returns​

System.Collections.Generic.List<ServiceStack.MetadataAttribute>

Parameters​
TypeName
System.Collections.Generic.IEnumerable<System.Attribute>attrs

ToAttribute(Attribute)​

View Source​
Declaration
public MetadataAttribute ToAttribute(Attribute attr)
Returns​

ServiceStack.MetadataAttribute

Parameters​
TypeName
System.Attributeattr

ToMetadataAttribute(Attribute)​

View Source​
Declaration
public MetadataAttribute ToMetadataAttribute(Attribute attr)
Returns​

ServiceStack.MetadataAttribute

Parameters​
TypeName
System.Attributeattr

Properties(Attribute)​

View Source​
Declaration
public List<PropertyInfo> Properties(Attribute attr)
Returns​

System.Collections.Generic.List<System.Reflection.PropertyInfo>

Parameters​
TypeName
System.Attributeattr

NonDefaultProperties(Attribute)​

View Source​
Declaration
public List<MetadataPropertyType> NonDefaultProperties(Attribute attr)
Returns​

System.Collections.Generic.List<ServiceStack.MetadataPropertyType>

Parameters​
TypeName
System.Attributeattr

ToProperty(PropertyInfo, Object, Dictionary<String, Object>)​

View Source​
Declaration
public MetadataPropertyType ToProperty(PropertyInfo pi, object instance = null, Dictionary<string, object> ignoreValues = null)
Returns​

ServiceStack.MetadataPropertyType

Parameters​
TypeName
System.Reflection.PropertyInfopi
System.Objectinstance
System.Collections.Generic.Dictionary<System.String,System.Object>ignoreValues

ToProperty(ParameterInfo)​

View Source​
Declaration
public MetadataPropertyType ToProperty(ParameterInfo pi)
Returns​

ServiceStack.MetadataPropertyType

Parameters​
TypeName
System.Reflection.ParameterInfopi