System.ComponentModel.LicenseManager.GetCachedProviderInstance C# (CSharp) Method

GetCachedProviderInstance() private static method

Retrieves a cached instance of the provider of the specified type.
private static GetCachedProviderInstance ( Type providerType ) : LicenseProvider
providerType Type
return LicenseProvider
        private static LicenseProvider GetCachedProviderInstance(Type providerType)
        {
            Debug.Assert(providerType != null, "Type cannot ever be null");
            if (s_providerInstances != null)
            {
                return (LicenseProvider)s_providerInstances[providerType];
            }
            return null;
        }