IsExtensionResourceId() private static method

Checks whether a resource id contains an extension resource.
private static IsExtensionResourceId ( string resourceId ) : bool
resourceId string The resource Id.
return bool
 /// <summary>
 /// Gets either a resource type or resource Id based on the value of the <see cref="getResourceName"/> parameter.
 /// </summary>
 /// <param name="resourceId">The resource Id.</param>
 /// <param name="getResourceName">When set to true returns a resource name, otherwise a resource type.</param>
 /// <param name="includeProviderNamespace">Indicates if the provider namespace should be included in the resource name.</param>
 private static string GetExtensionResourceTypeOrName(string resourceId, bool getResourceName, bool includeProviderNamespace = true)
 {
     return(ResourceIdUtility.IsExtensionResourceId(resourceId)
         ? ResourceIdUtility.GetResourceTypeOrName(resourceId: resourceId, getResourceName: getResourceName, includeProviderNamespace: includeProviderNamespace, useLastSegment: true)
         : null);
 }
 /// <summary>
 /// Gets the extension provider namespace from the resource id.
 /// </summary>
 /// <param name="resourceId">The resource id.</param>
 public static string GetExtensionProviderNamespace(string resourceId)
 {
     return(ResourceIdUtility.IsExtensionResourceId(resourceId)
         ? ResourceIdUtility.GetNextSegmentAfter(resourceId: resourceId, segmentName: Constants.Providers, selectLastSegment: true)
         : null);
 }