MetadataTypeExtensions
Assembly: ServiceStack.dll
View Source
Declaration
public static class MetadataTypeExtensions
Fields
CollectionTypes
View Source
Declaration
public static HashSet<string> CollectionTypes
Methods
GetParamType(MetadataPropertyType, MetadataType, Operation)
View Source
Declaration
public static string GetParamType(this MetadataPropertyType prop, MetadataType type, Operation op)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.MetadataPropertyType | prop |
ServiceStack.MetadataType | type |
ServiceStack.Host.Operation | op |
GetParamType(ApiMemberAttribute, Type, String)
View Source
Declaration
public static string GetParamType(this ApiMemberAttribute attr, Type type, string verb)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.ApiMemberAttribute | attr |
System.Type | type |
System.String | verb |
IsCollection(MetadataPropertyType)
View Source
Declaration
public static bool IsCollection(this MetadataPropertyType prop)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataPropertyType | prop |
IsArray(MetadataPropertyType)
View Source
Declaration
public static bool IsArray(this MetadataPropertyType prop)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataPropertyType | prop |
IsInterface(MetadataType)
View Source
Declaration
public static bool IsInterface(this MetadataType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
IsAbstract(MetadataType)
View Source
Declaration
public static bool IsAbstract(this MetadataType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataType | type |
ExcludesFeature(Type, Feature)
View Source
Declaration
public static bool ExcludesFeature(this Type type, Feature feature)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | type |
ServiceStack.Feature | feature |
Has(Feature, Feature)
View Source
Declaration
public static bool Has(this Feature feature, Feature flag)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Feature | feature |
ServiceStack.Feature | flag |
NullIfFalse(Boolean)
View Source
Declaration
public static bool? NullIfFalse(this bool value)
Returns
System.Nullable<System.Boolean>
Parameters
Type | Name |
---|---|
System.Boolean | value |
NullIfEmpty<T>(List<T>)
View Source
Declaration
public static List<T> NullIfEmpty<T>(this List<T> value)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.Collections.Generic.List<<T>> | value |
Type Parameters
T
NullIfMinValue(Int32)
View Source
Declaration
public static int? NullIfMinValue(this int value)
Returns
System.Nullable<System.Int32>
Parameters
Type | Name |
---|---|
System.Int32 | value |
ToMetadataServiceRoutes(Dictionary<Type, String[]>, Action<Dictionary<String, String[]>>)
View Source
Declaration
public static Dictionary<string, string[]> ToMetadataServiceRoutes(this Dictionary<Type, string[]> serviceRoutes, Action<Dictionary<string, string[]>> filter = null)
Returns
System.Collections.Generic.Dictionary<System.String,System.String[]>
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.Type,System.String[]> | serviceRoutes |
System.Action<System.Collections.Generic.Dictionary<System.String,System.String[]>> | filter |
ForceInclude(MetadataTypesConfig, Type)
View Source
Declaration
public static bool ForceInclude(this MetadataTypesConfig config, Type type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataTypesConfig | config |
System.Type | type |
ForceInclude(MetadataTypesConfig, MetadataType)
View Source
Declaration
public static bool ForceInclude(this MetadataTypesConfig config, MetadataType type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.MetadataTypesConfig | config |
ServiceStack.MetadataType | type |