Sdl.Web.Common.Models.ModelTypeRegistry.GetSemanticTypes C# (CSharp) Method

GetSemanticTypes() public static method

Gets the semantic types (and prefix mappings) for a given Model Type.
public static GetSemanticTypes ( Type modelType, string>.IDictionary &prefixMappings ) : string[]
modelType System.Type The Model Type.
prefixMappings string>.IDictionary The prefix mappings for the prefixes used by the types.
return string[]
        public static string[] GetSemanticTypes(Type modelType, out IDictionary<string, string> prefixMappings)
        {
            // No Tracer here to reduce trace noise.
            SemanticInfo semanticInfo = GetSemanticInfo(modelType);
            prefixMappings = semanticInfo.PrefixMappings;
            return semanticInfo.PublicSemanticTypes.ToArray();
        }