Sdl.Web.Common/Models/ModelTypeRegistry.cs
/// <summary>
/// Gets the semantic types (and prefix mappings) for a given Model Type.
/// </summary>
/// <param name="modelType">The Model Type.</param>
/// <param name="prefixMappings">The prefix mappings for the prefixes used by the types.</param>
/// <returns>The semantic types.</returns>
Gets the semantic types (and prefix mappings) for a given Model Type.
Gets the semantic types ( and prefix mappings ) for a given Model Type .
public static string[] GetSemanticTypes(Type modelType, out IDictionary<string, string> prefixMappings)
        {
            SemanticInfo semanticInfo = GetSemanticInfo(modelType);
            prefixMappings = semanticInfo.PrefixMappings;
            return semanticInfo.PublicSemanticTypes.ToArray();
        }
public static string [ ] GetSemanticTypes ( Type modelType , out IDictionary < string , string > prefixMappings ) { SemanticInfo semanticInfo = GetSemanticInfo ( modelType ) ; prefixMappings = semanticInfo . PrefixMappings ; return semanticInfo . PublicSemanticTypes . ToArray ( ) ; }
Gets the semantic types (and prefix mappings) for a given Model Type.
Gets the semantic types ( and prefix mappings ) for a given Model Type .
// No Tracer here to reduce trace noise.
The semantic types.
The semantic types .
modelType
Type
The Model Type.
The Model Type .
IDictionary<string, string>
out
prefixMappings
The prefix mappings for the prefixes used by the types.
The prefix mappings for the prefixes used by the types .