// sense that they provide a public API while not necessarily being public themselves. As such,
// we need to allow instantiation of internal TypeDescriptionProviders. See the thread attached
// to VSWhidbey #500522 for a more detailed discussion.
+#if !DISABLE_CAS_USE
IntSecurity.FullReflection.Assert();
try {
+#endif
prov = (TypeDescriptionProvider)Activator.CreateInstance(providerType);
+#if !DISABLE_CAS_USE
}
finally {
CodeAccessPermission.RevertAssert();
}
+#endif
Trace("Providers : Default provider found : {0}", providerType.Name);
AddProvider(prov, type);
providerAdded = true;