328 references to CreateInstance
mscorlib (8)
system\diagnostics\eventing\eventsource.cs (1)
3176
attr = (Attribute)Activator.
CreateInstance
(attributeType);
system\diagnostics\stacktrace.cs (1)
183
object target = Activator.
CreateInstance
(symbolsType);
system\Lazy.cs (1)
450
boxed = new Boxed((T)Activator.
CreateInstance
(typeof(T)));
system\reflection\emit\assemblybuilder.cs (2)
722
writer = (ISymbolWriter)Activator.
CreateInstance
(symWriter);
923
writer = (ISymbolWriter)Activator.
CreateInstance
(symWriter);
system\runtime\interopservices\windowsruntime\managedactivationfactory.cs (1)
59
return Activator.
CreateInstance
(m_type);
system\security\policy\applicationsecuritymanager.cs (1)
176
IApplicationTrustManager appTrustManager = Activator.
CreateInstance
(tmClass) as IApplicationTrustManager;
system\threading\LazyInitializer.cs (1)
260
return (T)Activator.
CreateInstance
(typeof(T));
PresentationCore (1)
Core\CSharp\System\Windows\Media\Effects\Generated\ShaderEffect.cs (1)
176
return (Freezable)Activator.
CreateInstance
(this.GetType());
PresentationFramework (19)
src\Framework\Microsoft\Win32\OpenFileDialog.cs (1)
473
return (IFileDialog)Activator.
CreateInstance
(Type.GetTypeFromCLSID(new Guid(CLSID.FileOpenDialog)));
src\Framework\Microsoft\Win32\SaveFileDialog.cs (1)
415
return (IFileDialog)Activator.
CreateInstance
(Type.GetTypeFromCLSID(new Guid(CLSID.FileSaveDialog)));
src\Framework\MS\Internal\AppModel\Journaling.cs (1)
729
pageFunction = (PageFunctionBase)Activator.
CreateInstance
(pfType);
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (1)
294
filter = (IFilter)Activator.
CreateInstance
(filterType);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1188
header = Activator.
CreateInstance
(headerType) as GridViewColumnHeader;
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1466
return Activator.
CreateInstance
(Type.GetTypeFromCLSID(new Guid(CLSID.WebBrowser)));
src\Framework\System\Windows\Documents\TextRangeEdit.cs (1)
35
TextElement newElement = (TextElement)Activator.
CreateInstance
(element.GetType());
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
447
element = (TextElement)Activator.
CreateInstance
(_elementType);
src\Framework\System\Windows\Documents\TextTreeExtractElementUndoUnit.cs (1)
69
element = (TextElement)Activator.
CreateInstance
(_type);
src\Framework\System\Windows\FrameworkElementFactory.cs (1)
498
return (DependencyObject)Activator.
CreateInstance
(_type);
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
308
return Activator.
CreateInstance
(Type.GetTypeFromCLSID(clsid));
src\Framework\System\Windows\Markup\BamlMapTable.cs (1)
602
tc = Activator.
CreateInstance
(t) as TypeConverter;
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
5339
instance = Activator.
CreateInstance
(type);
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
2849
ith = (InternalTypeHelper)Activator.
CreateInstance
(ithType);
src\Framework\System\Windows\Shell\JumpList.cs (3)
578
var destinationList = (ICustomDestinationList)Activator.
CreateInstance
(Type.GetTypeFromCLSID(new Guid(CLSID.DestinationList)));
934
var shellObjectCollection = (IObjectCollection)Activator.
CreateInstance
(Type.GetTypeFromCLSID(new Guid(CLSID.EnumerableObjectCollection)));
1030
var link = (IShellLinkW)Activator.
CreateInstance
(Type.GetTypeFromCLSID(new Guid(CLSID.ShellLink)));
src\Framework\System\Windows\Standard\ComGuids.cs (1)
68
return (T)System.Activator.
CreateInstance
(System.Type.GetTypeFromCLSID(new System.Guid(clsid)));
src\Framework\System\Windows\Window.cs (1)
6759
taskbarList = (ITaskbarList)Activator.
CreateInstance
(Type.GetTypeFromCLSID(new Guid(CLSID.TaskbarList)));
System (2)
compmod\system\codedom\compiler\CompilerInfo.cs (1)
86
return (CodeDomProvider)Activator.
CreateInstance
(CodeDomProviderType);
compmod\system\componentmodel\TypeDescriptor.cs (1)
480
prov = (TypeDescriptionProvider)Activator.
CreateInstance
(providerType);
System.Activities (15)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (2)
198
VisualBasicExpressionFactory expressionFactory = (VisualBasicExpressionFactory)Activator.
CreateInstance
(concreteHelperType);
330
VisualBasicExpressionFactory expressionFactory = (VisualBasicExpressionFactory)Activator.
CreateInstance
(concreteHelperType);
System\Activities\ActivityUtilities.cs (6)
376
object variableReference = Activator.
CreateInstance
(genericVariableReferenceType);
390
Argument argument = (Argument)Activator.
CreateInstance
(argumentType);
401
argument = (Argument)Activator.
CreateInstance
(inArgumentOfObjectType);
405
argument = (Argument)Activator.
CreateInstance
(outArgumentOfObjectType);
409
argument = (Argument)Activator.
CreateInstance
(inOutArgumentOfObjectType);
449
Variable variable = (Variable)Activator.
CreateInstance
(variableType);
System\Activities\Debugger\DebugInfo.cs (1)
142
LocationHelper helper = (LocationHelper)Activator.
CreateInstance
(locationHelperType);
System\Activities\Debugger\StateManager.cs (1)
247
value = Activator.
CreateInstance
(localsItemDescription.Type);
System\Activities\HandleInitializationContext.cs (1)
77
object value = Activator.
CreateInstance
(handleType);
System\Activities\RuntimeArgument.cs (2)
200
argument = (Argument) Activator.
CreateInstance
(this.bindingProperty.PropertyType);
254
argument = (Argument)Activator.
CreateInstance
(targetProperty.PropertyType);
System\Activities\XamlIntegration\ActivityWithResultConverter.cs (1)
104
this.locationHelper = (LocationHelper)Activator.
CreateInstance
(concreteHelperType);
System\Activities\XamlIntegration\TypeConverterBase.cs (1)
119
return (TypeConverterHelper)Activator.
CreateInstance
(concreteHelperType);
System.Activities.Core.Presentation (12)
System\Activities\Core\Presentation\CaseKeyBox.ViewModel.cs (1)
144
this.Value = Activator.
CreateInstance
(this.ValueType);
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (1)
529
FlowNode clonedObject = (FlowNode)Activator.
CreateInstance
(flowElementType);
System\Activities\Core\Presentation\MorphHelpers.cs (5)
70
object activityAction = Activator.
CreateInstance
(activityActionType);
77
DelegateInArgument iterationDelegateArgument = (DelegateInArgument)Activator.
CreateInstance
(variableType);
98
object activityFunc = Activator.
CreateInstance
(activityFuncType);
105
DelegateInArgument newActivityActionArgument = (DelegateInArgument)Activator.
CreateInstance
(argumentType);
114
DelegateOutArgument newActivityActionResult = (DelegateOutArgument)Activator.
CreateInstance
(resultType);
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (3)
334
object catchObject = Activator.
CreateInstance
(catchType);
337
object activityAction = Activator.
CreateInstance
(activityActionType);
340
object exceptionArgument = Activator.
CreateInstance
(argumentType);
System\ServiceModel\Activities\Presentation\BindingEditor.xaml.cs (1)
84
Binding instance = (Binding)Activator.
CreateInstance
(entry.Value.BindingType);
System\ServiceModel\Activities\Presentation\CorrelationInitializerDesigner.xaml.cs (1)
230
var newInitializer = (CorrelationInitializer)Activator.
CreateInstance
(type);
System.Activities.Presentation (25)
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateInfo.cs (1)
37
ActivityDelegate delegateObject = Activator.
CreateInstance
(this.DelegateType) as ActivityDelegate;
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (2)
108
delegateArgument = Activator.
CreateInstance
(typeof(DelegateInArgument<>).MakeGenericType(argument.Type)) as DelegateArgument;
112
delegateArgument = Activator.
CreateInstance
(typeof(DelegateOutArgument<>).MakeGenericType(argument.Type)) as DelegateArgument;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (1)
264
item = (ContextItem)Activator.
CreateInstance
(itemType);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (3)
498
NewItemFactory factory = (NewItemFactory)Activator.
CreateInstance
(attribute.FactoryType);
573
return Activator.
CreateInstance
(type);
837
return (TypeConverter)Activator.
CreateInstance
(typeConverterType);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\ExtensibilityMetadataHelper.cs (1)
44
propertyValueEditor = (PropertyValueEditor)Activator.
CreateInstance
(editorType);
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (3)
201
return (TypeConverter)Activator.
CreateInstance
(Type.GetType(attribute.ConverterTypeName));
280
return Activator.
CreateInstance
(Type.GetType(attribute.EditorTypeName));
391
result = (PropertyValueEditor)Activator.
CreateInstance
(editorType);
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
414
droppedObject = Activator.
CreateInstance
(type);
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (2)
184
ExpressionMorphHelper morphHelper = Activator.
CreateInstance
(morphHelperAttribute.ExpressionMorphHelperType) as ExpressionMorphHelper;
219
ExpressionMorphHelper morphHelper = Activator.
CreateInstance
(morphHelperAttribute.ExpressionMorphHelperType) as ExpressionMorphHelper;
System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (1)
34
Feature feature = (Feature)Activator.
CreateInstance
(featureAttribute.Type);
System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (2)
47
ModelItem newModelItem = ModelFactory.CreateItem(modelItem.GetEditingContext(), Activator.
CreateInstance
(newModelItemType));
83
Activity activity = (Activity)Activator.
CreateInstance
(activityType);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
450
SearchableStringConverter converter = Activator.
CreateInstance
(converterType) as SearchableStringConverter;
System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (1)
55
converter = (TypeConverter)Activator.
CreateInstance
(type);
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (1)
228
Activator.
CreateInstance
(toolboxItemAttributes[0].ToolboxItemType) as ToolboxItem;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1138
BitmapEncoder encoder = (BitmapEncoder)Activator.
CreateInstance
(encoderType);
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
688
editorInstance = Activator.
CreateInstance
(expressionEditorType) as ExpressionActivityEditor;
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
2170
return Activator.
CreateInstance
(expressionType).ToString();
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
174
viewElement = (WorkflowViewElement)Activator.
CreateInstance
(designerType);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.Helpers.cs (1)
53
viewManager = (ViewManager)Activator.
CreateInstance
(viewManagerAttribute.ViewManagerType);
System.Data (29)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateInfo.cs (1)
37
ActivityDelegate delegateObject = Activator.
CreateInstance
(this.DelegateType) as ActivityDelegate;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (2)
108
delegateArgument = Activator.
CreateInstance
(typeof(DelegateInArgument<>).MakeGenericType(argument.Type)) as DelegateArgument;
112
delegateArgument = Activator.
CreateInstance
(typeof(DelegateOutArgument<>).MakeGenericType(argument.Type)) as DelegateArgument;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (1)
264
item = (ContextItem)Activator.
CreateInstance
(itemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (3)
498
NewItemFactory factory = (NewItemFactory)Activator.
CreateInstance
(attribute.FactoryType);
573
return Activator.
CreateInstance
(type);
837
return (TypeConverter)Activator.
CreateInstance
(typeConverterType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\ExtensibilityMetadataHelper.cs (1)
44
propertyValueEditor = (PropertyValueEditor)Activator.
CreateInstance
(editorType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (3)
201
return (TypeConverter)Activator.
CreateInstance
(Type.GetType(attribute.ConverterTypeName));
280
return Activator.
CreateInstance
(Type.GetType(attribute.EditorTypeName));
391
result = (PropertyValueEditor)Activator.
CreateInstance
(editorType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
414
droppedObject = Activator.
CreateInstance
(type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (2)
184
ExpressionMorphHelper morphHelper = Activator.
CreateInstance
(morphHelperAttribute.ExpressionMorphHelperType) as ExpressionMorphHelper;
219
ExpressionMorphHelper morphHelper = Activator.
CreateInstance
(morphHelperAttribute.ExpressionMorphHelperType) as ExpressionMorphHelper;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (1)
34
Feature feature = (Feature)Activator.
CreateInstance
(featureAttribute.Type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (2)
47
ModelItem newModelItem = ModelFactory.CreateItem(modelItem.GetEditingContext(), Activator.
CreateInstance
(newModelItemType));
83
Activity activity = (Activity)Activator.
CreateInstance
(activityType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
450
SearchableStringConverter converter = Activator.
CreateInstance
(converterType) as SearchableStringConverter;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (1)
55
converter = (TypeConverter)Activator.
CreateInstance
(type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (1)
228
Activator.
CreateInstance
(toolboxItemAttributes[0].ToolboxItemType) as ToolboxItem;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1138
BitmapEncoder encoder = (BitmapEncoder)Activator.
CreateInstance
(encoderType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
688
editorInstance = Activator.
CreateInstance
(expressionEditorType) as ExpressionActivityEditor;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
2170
return Activator.
CreateInstance
(expressionType).ToString();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
174
viewElement = (WorkflowViewElement)Activator.
CreateInstance
(designerType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.Helpers.cs (1)
53
viewManager = (ViewManager)Activator.
CreateInstance
(viewManagerAttribute.ViewManagerType);
fx\src\data\System\Data\DataColumn.cs (1)
1479
DataColumn clone = (DataColumn)Activator.
CreateInstance
(this.GetType());
fx\src\data\System\Data\Sql\sqlnorm.cs (1)
153
result = Activator.
CreateInstance
(t);
fx\src\data\System\Data\Sql\sqlser.cs (2)
46
return SizeInBytes(Activator.
CreateInstance
(t));
185
object instance = Activator.
CreateInstance
(m_type);
System.Data.Entity (4)
System\Data\Common\Internal\Materialization\ShaperFactory.cs (1)
27
ShaperFactoryCreator creator = (ShaperFactoryCreator)Activator.
CreateInstance
(typeof(TypedShaperFactoryCreator<>).MakeGenericType(elementType));
System\Data\Common\Utils\Boolean\IdentifierService.cs (1)
40
return (IdentifierService<T_Identifier>)Activator.
CreateInstance
(
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
385
EntityViewContainer viewContainer = (Activator.
CreateInstance
(viewContainerType) as EntityViewContainer);
System\Data\Objects\ObjectView.cs (1)
179
TElement newItem = (TElement)Activator.
CreateInstance
(typeof(TElement));
System.Data.Entity.Design (4)
System\Data\Entity\Design\EntityCodeGenerator.cs (4)
505
return Activator.
CreateInstance
(_csharpCodeGeneratorTypeV2);
516
return Activator.
CreateInstance
(_csharpCodeGeneratorTypeV3);
527
return Activator.
CreateInstance
(_vbCodeGeneratorTypeV2);
538
return Activator.
CreateInstance
(_vbCodeGeneratorTypeV3);
System.Data.Linq (3)
ChangeTracker.cs (1)
526
object copy = Activator.
CreateInstance
(this.Type.Type);
DataContext.cs (1)
187
this.provider = (IProvider)Activator.
CreateInstance
(providerType);
SqlClient\Query\SqlMethodCallConverter.cs (1)
1003
sql.ValueFromObject(Activator.
CreateInstance
(clrType), mc.SourceExpression));
System.Data.Services.Client (7)
System\Data\Services\Client\AtomMaterializer.cs (2)
1157
result = Activator.
CreateInstance
(collectionType);
1673
entry.ResolvedObject = Activator.
CreateInstance
(type);
System\Data\Services\Client\ClientType.cs (1)
639
return Activator.
CreateInstance
(this.ElementType);
System\Data\Services\Client\DataServiceContext.cs (3)
3878
collection = Activator.
CreateInstance
(typeof(List<>).MakeGenericType(nestedType));
3885
IList results = (IList)Activator.
CreateInstance
(typeof(List<>).MakeGenericType(elementType));
3972
IList results = (IList)Activator.
CreateInstance
(typeof(List<>).MakeGenericType(elementType));
System\Data\Services\Client\MaterializeFromAtom.cs (1)
307
IList list = (IList)Activator.
CreateInstance
(implementationType);
System.Management (8)
Instrumentation\EventSource.cs (2)
569
Object converter = Activator.
CreateInstance
(converterType);
795
Object converter = Activator.
CreateInstance
((Type)instrumentedAssembly.mapTypeToConverter[managedType]);
Instrumentation\Instrumentation.cs (2)
550
Object converter = Activator.
CreateInstance
(converterType);
608
Object converter = Activator.
CreateInstance
(converterType);
InteropClasses\WMIInterop.cs (2)
1996
return Activator.
CreateInstance
(type);
2067
reqToProcess.createdObject = Activator.
CreateInstance
(reqToProcess.typeToCreate);
WmiGenerator.cs (2)
4975
cp = (System.CodeDom.Compiler.CodeDomProvider)Activator.
CreateInstance
(codeProvType);
4997
cp = (System.CodeDom.Compiler.CodeDomProvider)Activator.
CreateInstance
(codeProvType);
System.Runtime.Remoting (2)
channels\http\httpremotinghandler.cs (1)
449
_webServicesFactory = Activator.
CreateInstance
(WebServicesFactoryType);
channels\tcp\tcpserverchannel.cs (1)
138
_authorizeRemotingConnection = (IAuthorizeRemotingConnection) Activator.
CreateInstance
(Type.GetType((String)entry.Value, true));
System.Runtime.Serialization (1)
System\Runtime\Serialization\SchemaExporter.cs (1)
700
IXmlSerializable ixmlSerializable = (IXmlSerializable)Activator.
CreateInstance
(clrType);
System.ServiceModel (25)
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (1)
164
return Activator.
CreateInstance
(factoryType) as HttpMessageHandlerFactory;
System\ServiceModel\Configuration\ClientCredentialsElement.cs (1)
126
behavior = (ClientCredentials) Activator.
CreateInstance
(credentialsType);
System\ServiceModel\Configuration\CustomBindingCollectionElement.cs (1)
63
BindingElementExtensionElement bindingElementExtension = Activator.
CreateInstance
(Type.GetType(element.Type, true)) as BindingElementExtensionElement;
System\ServiceModel\Configuration\IssuedTokenServiceElement.cs (2)
167
issuedToken.CustomCertificateValidator = (X509CertificateValidator)Activator.
CreateInstance
(type);
177
issuedToken.SamlSerializer = (SamlSerializer)Activator.
CreateInstance
(type);
System\ServiceModel\Configuration\PeerCustomResolverElement.cs (1)
82
settings.Resolver = Activator.
CreateInstance
(myResolverType) as PeerResolver;
System\ServiceModel\Configuration\SecureConversationServiceElement.cs (1)
63
secureConversation.SecurityStateEncoder = (SecurityStateEncoder)Activator.
CreateInstance
(type);
System\ServiceModel\Configuration\ServiceAuthenticationElement.cs (1)
63
behavior.ServiceAuthenticationManager = (ServiceAuthenticationManager)Activator.
CreateInstance
(type);
System\ServiceModel\Configuration\ServiceAuthorizationElement.cs (2)
128
behavior.ServiceAuthorizationManager = (ServiceAuthorizationManager)Activator.
CreateInstance
(type);
142
policies.Add((IAuthorizationPolicy)Activator.
CreateInstance
(type));
System\ServiceModel\Configuration\ServiceCredentialsElement.cs (1)
129
behavior = (ServiceCredentials)Activator.
CreateInstance
(credentialsType);
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (1)
346
retval = (TServiceModelExtensionElement)Activator.
CreateInstance
(elementType);
System\ServiceModel\Configuration\UserNameServiceElement.cs (1)
141
userName.CustomUserNamePasswordValidator = (UserNamePasswordValidator)Activator.
CreateInstance
(validatorType);
System\ServiceModel\Configuration\X509ClientCertificateAuthenticationElement.cs (1)
114
cert.CustomCertificateValidator = (X509CertificateValidator)Activator.
CreateInstance
(validatorType);
System\ServiceModel\Configuration\X509PeerCertificateAuthenticationElement.cs (1)
96
cert.CustomCertificateValidator = (X509CertificateValidator)Activator.
CreateInstance
(validatorType);
System\ServiceModel\Configuration\X509ServiceCertificateAuthenticationElement.cs (1)
96
cert.CustomCertificateValidator = (X509CertificateValidator)Activator.
CreateInstance
(validatorType);
System\ServiceModel\Description\OperationGenerator.cs (1)
992
Attribute defaultAttribute = (Attribute)Activator.
CreateInstance
(attributeType);
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (1)
339
return (parameterType.IsValueType && parameterType != typeof(void)) ? Activator.
CreateInstance
(parameterType) : null;
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
349
object bodyObject = Activator.
CreateInstance
(messageDescription.Body.Parts[0].Type);
System\ServiceModel\MessageHeaderT.cs (1)
125
result = (TypedHeaderManager)Activator.
CreateInstance
(GenericAdapterType.MakeGenericType(t));
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
201
return (InlineCategoriesDocument)Activator.
CreateInstance
(this.inlineDocumentType);
213
return (ReferencedCategoriesDocument)Activator.
CreateInstance
(this.referencedDocumentType);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (1)
223
return (ServiceDocument)Activator.
CreateInstance
(this.documentType);
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
411
return (SyndicationFeed) Activator.
CreateInstance
(feedType);
System\ServiceModel\Syndication\SyndicationItemFormatter.cs (1)
82
return (SyndicationItem)Activator.
CreateInstance
(itemType);
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\HostedTransportConfigurationManager.cs (1)
218
configuration = Activator.
CreateInstance
(type) as HostedTransportConfiguration;
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (1)
112
Activity activity = (Activity)Activator.
CreateInstance
(activityType);
System.ServiceModel.Internals (1)
System\Runtime\TypeHelper.cs (1)
574
return Activator.
CreateInstance
(type);
System.ServiceModel.Web (3)
System\ServiceModel\Configuration\WebHttpBindingElement.cs (1)
274
contentTypeMapper = (WebContentTypeMapper)Activator.
CreateInstance
(type);
System\ServiceModel\Configuration\WebMessageEncodingElement.cs (1)
99
binding.ContentTypeMapper = (WebContentTypeMapper) Activator.
CreateInstance
(CTMType);
System\ServiceModel\Dispatcher\QueryStringConverter.cs (1)
277
converter = (TypeConverter) Activator.
CreateInstance
(converterType);
System.Web (36)
Compilation\BrowserCapabilitiesCompiler.cs (2)
83
(BrowserCapabilitiesFactoryBase)Activator.
CreateInstance
(t);
395
_baseInstance = (BrowserCapabilitiesFactoryBase)Activator.
CreateInstance
(baseType);
Compilation\CompilationUtil.cs (3)
457
return (CodeDomProvider)Activator.
CreateInstance
(codeDomProviderType);
519
CodeDomProvider defaultProvider = (CodeDomProvider)Activator.
CreateInstance
(codeDomProviderType);
540
CodeDomProvider provider = (CodeDomProvider)Activator.
CreateInstance
(codeDomProviderType);
Configuration\HttpCapabilitiesEvaluator.cs (1)
88
_browserCapabilitiesProvider = (HttpCapabilitiesProvider)Activator.
CreateInstance
(t);
Configuration\IISVersionHelper.cs (1)
55
return (IIISVersionManager)Activator.
CreateInstance
(type);
Configuration\RemoteWebConfigurationHost.cs (1)
492
return (IRemoteWebConfigurationHostServer)Activator.
CreateInstance
(type);
Configuration\RemoteWebConfigurationHostServer.cs (1)
227
ProtectedConfigurationProvider provider = (ProtectedConfigurationProvider)Activator.
CreateInstance
(t);
Hosting\ApplicationManager.cs (1)
1640
hostSecurityPolicyResolver = Activator.
CreateInstance
(
Hosting\HostingEnvironment.cs (2)
744
return new ObjectHandle(Activator.
CreateInstance
(type));
759
obj = (IRegisteredObject)Activator.
CreateInstance
(type);
Hosting\PreloadHost.cs (1)
39
IProcessHostPreloadClient preloadClient = (IProcessHostPreloadClient)Activator.
CreateInstance
(preloadObjType);
Hosting\ProcessHost.cs (1)
479
protocolHandler = (ProcessProtocolHandler)Activator.
CreateInstance
(protocolHandlerType);
HttpRuntime.cs (2)
3423
return Activator.
CreateInstance
(type);
3491
return Activator.
CreateInstance
(type);
httpserverutility.cs (3)
90
obj = Activator.
CreateInstance
(type);
112
Object obj = Activator.
CreateInstance
(type);
148
obj = Activator.
CreateInstance
(type);
httpstaticobjectscollection.cs (1)
277
_instance = Activator.
CreateInstance
(_type);
ModelBinding\ArrayModelBinderProvider.cs (1)
12
return (IModelBinder)Activator.
CreateInstance
(typeof(ArrayModelBinder<>).MakeGenericType(elementType));
ModelBinding\CollectionModelBinderUtil.cs (1)
49
return (typeArguments != null) ? (IModelBinder)Activator.
CreateInstance
(openBinderType.MakeGenericType(typeArguments)) : null;
ModelBinding\GenericModelBinderProvider.cs (1)
42
return (IModelBinder)Activator.
CreateInstance
(closedModelBinderType);
ModelBinding\ModelBinderUtil.cs (1)
35
return (typeArguments != null) ? (IModelBinder)Activator.
CreateInstance
(openBinderType.MakeGenericType(typeArguments)) : null;
Profile\HttpProfileBase.cs (2)
96
grp = (ProfileGroupBase)Activator.
CreateInstance
(t);
365
ProfileBase hbc = (ProfileBase)Activator.
CreateInstance
(t);
Security\AuthStoreRoleProvider.cs (1)
607
_ObjAzAuthorizationStoreClass = Activator.
CreateInstance
(typeAzAuthorizationStoreClass);
Security\Membership.cs (1)
468
MembershipProvider provider = (MembershipProvider)Activator.
CreateInstance
(t);
Security\Roles.cs (1)
539
RoleProvider provider = (RoleProvider)Activator.
CreateInstance
(t);
UI\StateManagedCollection.cs (2)
188
o = Activator.
CreateInstance
(type);
266
o = Activator.
CreateInstance
(type);
UI\TemplateParser.cs (1)
478
_controlBuilderInterceptor = (ControlBuilderInterceptor) Activator.
CreateInstance
(CompConfig.ControlBuilderInterceptorTypeInternal);
UI\WebControls\ObjectDataSourceView.cs (2)
685
object dataObject = Activator.
CreateInstance
(dataObjectType);
1646
objectEventArgs.ObjectInstance = Activator.
CreateInstance
(method.Type);
Util\FactoryGenerator.cs (1)
183
return (IWebObjectFactory) Activator.
CreateInstance
(factoryType);
Util\SmtpMail.cs (1)
71
return Activator.
CreateInstance
(LateBoundType);
System.Web.ApplicationServices (2)
Hosting\CustomLoaderHelper.cs (1)
103
object customLoader = Activator.
CreateInstance
(customLoaderAttribute.CustomLoaderType);
Util\SystemWebProxy.cs (1)
49
return Activator.
CreateInstance
(type);
System.Web.DynamicData (1)
DynamicData\MetaModel.cs (1)
151
RegisterContext(() => Activator.
CreateInstance
(contextType), configuration);
System.Web.Extensions (9)
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (1)
464
ClientFormsAuthenticationCredentials creds = ((IClientFormsAuthenticationCredentialsProvider)Activator.
CreateInstance
(_GetCredentialsType)).GetCredentials();
Configuration\ConvertersCollection.cs (1)
90
list.Add((JavaScriptConverter)Activator.
CreateInstance
(t));
Script\Serialization\ObjectConverter.cs (6)
171
o = Activator.
CreateInstance
(targetType);
200
dict = (IDictionary)Activator.
CreateInstance
(type);
205
dict = (IDictionary)Activator.
CreateInstance
(t);
471
newList = (IList)Activator.
CreateInstance
(type);
484
newList = (IList)Activator.
CreateInstance
(t);
499
IList newList = (IList)Activator.
CreateInstance
(type);
Script\Services\RestHandler.cs (1)
138
if (!methodData.IsStatic) target = Activator.
CreateInstance
(methodData.Owner.TypeData.Type);
System.Web.Mobile (6)
UI\MobileControls\Design\PropertyOverridesDialog.cs (1)
702
Object clone = Activator.
CreateInstance
(
UI\MobileControls\Design\StylesEditorDialog.cs (2)
435
Style newStyle = (Style) Activator.
CreateInstance
(style.GetType());
761
Style newStyle = (Style)Activator.
CreateInstance
(_currentNewStyleType);
UI\MobileControls\DesignerDeviceConfig.cs (1)
51
adapter = Activator.
CreateInstance
(adapterType) as IControlAdapter;
UI\MobileControls\FactoryGenerator.cs (1)
191
object factory = Activator.
CreateInstance
(factoryType);
UI\MobileControls\MobilePage.cs (1)
300
pageAdapter.CookielessDataDictionary = Activator.
CreateInstance
(t) as IDictionary;
System.Web.Services (20)
System\Web\Services\Configuration\WebServicesSection.cs (1)
361
serverProtocolFactoryList.Add((ServerProtocolFactory)Activator.
CreateInstance
(this.SoapServerProtocolFactory));
System\Web\Services\Description\HttpProtocolImporter.cs (1)
46
MimeImporter importer = (MimeImporter)Activator.
CreateInstance
(importerTypes[i]);
System\Web\Services\Description\HttpProtocolReflector.cs (1)
26
MimeReflector reflector = (MimeReflector)Activator.
CreateInstance
(reflectorTypes[i]);
System\Web\Services\Description\ServiceDescriptionImporter.cs (1)
129
importers[i] = (ProtocolImporter)Activator.
CreateInstance
(importerTypes[i]);
System\Web\Services\Description\ServiceDescriptionReflector.cs (2)
119
ProtocolReflector reflector = (ProtocolReflector)Activator.
CreateInstance
(reflectorTypes[i]);
127
ProtocolReflector reflector = (ProtocolReflector) Activator.
CreateInstance
(reflectorTypes[i]);
System\Web\Services\Description\SoapProtocolImporter.cs (2)
414
SoapTransportImporter transportImporter = (SoapTransportImporter)Activator.
CreateInstance
(type);
519
SoapExtensionImporter extension = (SoapExtensionImporter)Activator.
CreateInstance
(extensionTypes[i].Type);
System\Web\Services\Description\SoapProtocolReflector.cs (2)
246
SoapExtensionReflector extension = (SoapExtensionReflector)Activator.
CreateInstance
(extensionTypes[i].Type);
261
SoapExtensionReflector extension = (SoapExtensionReflector)Activator.
CreateInstance
(extensionTypes[i].Type);
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (2)
135
discoRef = (DiscoveryReference) Activator.
CreateInstance
(type);
348
DiscoveryReference reference = (DiscoveryReference) Activator.
CreateInstance
(Type.GetType(typeName));
System\Web\Services\Protocols\MimeFormatter.cs (3)
49
return ((MimeFormatter)Activator.
CreateInstance
(type)).GetInitializer(methodInfo);
58
return ((MimeFormatter)Activator.
CreateInstance
(type)).GetInitializers(methodInfos);
67
MimeFormatter formatter = (MimeFormatter)Activator.
CreateInstance
(type);
System\Web\Services\Protocols\PatternMatcher.cs (1)
56
object target = Activator.
CreateInstance
(type);
System\Web\Services\Protocols\ServerProtocol.cs (1)
54
target = Activator.
CreateInstance
(ServerType.Type);
System\Web\Services\Protocols\SoapReflector.cs (3)
41
SoapExtension extension = (SoapExtension)Activator.
CreateInstance
(type);
47
SoapExtension extension = (SoapExtension)Activator.
CreateInstance
(type);
52
SoapExtension extension = (SoapExtension) Activator.
CreateInstance
(type);
System.Windows.Forms (31)
winforms\Managed\System\WinForms\ColumnHeader.cs (1)
442
columnHeader = (ColumnHeader)Activator.
CreateInstance
(clonedType);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (1)
182
attr = (Attribute)Activator.
CreateInstance
(t);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (1)
275
handler = (Com2ExtendedBrowsingHandler)Activator.
CreateInstance
(extendedInterfaceHandlerTypes[i]);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (3)
717
converter = (Com2DataTypeToManagedDataTypeConverter)Activator.
CreateInstance
(t);
746
localConverter = (TypeConverter)Activator.
CreateInstance
(converterType);
794
localEditor = Activator.
CreateInstance
(type);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
1121
str = Activator.
CreateInstance
(t);
winforms\Managed\System\WinForms\DataGridViewBand.cs (1)
895
DataGridViewBand dataGridViewBand = (DataGridViewBand) System.Activator.
CreateInstance
(this.GetType());
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
199
dataGridViewCell = (DataGridViewButtonCell)System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (1)
214
dataGridViewColumn = (DataGridViewButtonColumn) System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
1173
DataGridViewCell dataGridViewCell = (DataGridViewCell) System.Activator.
CreateInstance
(this.GetType());
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
495
dataGridViewCell = (DataGridViewCheckBoxCell)System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
1105
DataGridViewColumn dataGridViewColumn = (DataGridViewColumn) System.Activator.
CreateInstance
(this.GetType());
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
125
dataGridViewCell = (DataGridViewColumnHeaderCell) System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
869
dataGridViewCell = (DataGridViewComboBoxCell)System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewComboBoxColumn.cs (1)
509
dataGridViewColumn = (DataGridViewComboBoxColumn)System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
299
dataGridViewCell = (DataGridViewHeaderCell)System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
290
dataGridViewCell = (DataGridViewImageCell)System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (1)
293
dataGridViewColumn = (DataGridViewImageColumn)System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
494
dataGridViewCell = (DataGridViewLinkCell)System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (1)
375
dataGridViewColumn = (DataGridViewLinkColumn)System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
1133
dataGridViewRow = (DataGridViewRow) System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
168
dataGridViewCell = (DataGridViewRowHeaderCell) System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
160
dataGridViewCell = (DataGridViewTextBoxCell)System.Activator.
CreateInstance
(thisType);
winforms\Managed\System\WinForms\ListViewItem.cs (1)
991
newItem = (ListViewItem)Activator.
CreateInstance
(clonedType);
winforms\Managed\System\WinForms\MenuItem.cs (4)
1158
MenuItem sep = (MenuItem)Activator.
CreateInstance
(this.GetType());
1185
MenuItem windowItem = (MenuItem)Activator.
CreateInstance
(this.GetType());
1206
MenuItem moreWindows = (MenuItem)Activator.
CreateInstance
(this.GetType());
1229
MenuItem newItem = (MenuItem)Activator.
CreateInstance
(this.GetType());
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
2050
tab = (PropertyTab)Activator.
CreateInstance
(tabType);
winforms\Managed\System\WinForms\TreeNode.cs (1)
1272
node = (TreeNode)Activator.
CreateInstance
(clonedType);
System.Workflow.Activities (11)
Common\CompilerHelpers.cs (1)
66
provider = (CodeDomProvider)Activator.
CreateInstance
(type);
Common\CompModHelpers.cs (2)
1052
CompositeActivity activity = Activator.
CreateInstance
(compositeActivity.GetType()) as CompositeActivity;
1199
Activity newCustomActivity = Activator.
CreateInstance
(declaringActivity.GetType()) as Activity;
InvokeSchedule.cs (1)
230
rootActivity = Activator.
CreateInstance
(targetWorkflowType) as Activity;
InvokeWebService.cs (1)
113
object proxyInstance = Activator.
CreateInstance
(this.ProxyClass);
LocalService\CorrelationResolver.cs (1)
125
provider = Activator.
CreateInstance
(providerType) as ICorrelationProvider;
LocalService\ExternalDataExchangeService.cs (1)
201
service = Activator.
CreateInstance
(t);
Rules\Executor.cs (1)
809
converted = Activator.
CreateInstance
(toType);
Rules\Expressions.cs (2)
2087
object fromValueDefault = Activator.
CreateInstance
(fromType2);
3042
return new RuleLiteralResult(Activator.
CreateInstance
(expressionInfo.ExpressionType));
Rules\RuleValidation.cs (1)
442
return Activator.
CreateInstance
(resultType);
System.Workflow.ComponentModel (20)
AuthoringOM\ActivityExecutor.cs (1)
224
typeToExecutorMapping[executorType] = Activator.
CreateInstance
(executorType);
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (1)
150
validator = Activator.
CreateInstance
(dependencyProperty.ValidatorType) as Validator;
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
140
activity = Activator.
CreateInstance
(type) as Activity;
AuthoringOM\ComponentFactoryHelpers.cs (1)
209
component = Activator.
CreateInstance
(componentType);
AuthoringOM\DependencyProperty.cs (2)
251
defaultValue = Activator.
CreateInstance
(propertyType);
254
defaultValue = Activator.
CreateInstance
(propertyType);
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
558
defaultIndexerInstance = Activator.
CreateInstance
(indexType);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (2)
1016
components = new IComponent[] { Activator.
CreateInstance
(activityType) as IComponent };
1066
Activity dummyActivity = Activator.
CreateInstance
(activityType) as Activity;
AuthoringOM\Design\SecondaryViewProvider.cs (1)
188
Activity activity = Activator.
CreateInstance
(activityType) as Activity;
AuthoringOM\Design\TypeConverters.cs (2)
68
return Activator.
CreateInstance
(this.conditionDecls[value] as Type);
113
conditionDeclList.Add(Activator.
CreateInstance
(declType));
AuthoringOM\Design\WorkflowInlining.cs (1)
360
return Activator.
CreateInstance
(this.targetWorkflowType) as Activity;
AuthoringOM\Serializer\ActivitySurrogate.cs (1)
344
this.activity = (Activity)Activator.
CreateInstance
(this.type);
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (3)
1357
return Activator.
CreateInstance
(type);
2594
obj = Activator.
CreateInstance
(type);
2597
obj = Activator.
CreateInstance
(type);
Shared\CompilerHelpers.cs (1)
64
provider = (CodeDomProvider)Activator.
CreateInstance
(type);
Shared\CompModHelpers.cs (2)
1050
CompositeActivity activity = Activator.
CreateInstance
(compositeActivity.GetType()) as CompositeActivity;
1197
Activity newCustomActivity = Activator.
CreateInstance
(declaringActivity.GetType()) as Activity;
System.Workflow.Runtime (5)
DebugEngine\DebugControllerThread.cs (2)
105
expressionEvaluationFrame = Activator.
CreateInstance
(Type.GetType(evaluationFrameTypeName)) as IExpressionEvaluationFrame;
131
expressionEvaluationFrame = Activator.
CreateInstance
(eeFrameType) as IExpressionEvaluationFrame;
Hosting\DefaultWorkflowLoaderService.cs (1)
38
return Activator.
CreateInstance
(workflowType) as Activity;
System\Activities\Statements\Interop.cs (1)
489
System.Workflow.ComponentModel.Activity activity = Activator.
CreateInstance
(this.ActivityType) as System.Workflow.ComponentModel.Activity;
WorkflowRuntime.cs (1)
1534
service = Activator.
CreateInstance
(t);
System.WorkflowServices (6)
System\ServiceModel\Dispatcher\ServiceDurableInstance.cs (1)
533
this.instance = Activator.
CreateInstance
(this.newServiceType);
System\Workflow\Activities\Design\RichListBox.cs (3)
186
SelectedItemViewControl = Activator.
CreateInstance
(GetDetailViewType(selectedItem.GetType())) as ListItemViewControl;
201
activeItemViewControl = Activator.
CreateInstance
(GetItemViewType(selectedItem.GetType())) as ListItemViewControl;
229
listItemViewRenderers.Add(viewType.Name, Activator.
CreateInstance
(viewType) as ListItemViewControl);
System\Workflow\Activities\OperationInfoBase.cs (1)
81
OperationInfoBase clonedOperation = (OperationInfoBase) Activator.
CreateInstance
(this.GetType());
System\Workflow\Runtime\CompiledWorkflowDefinitionContext.cs (1)
63
rootActivity = (Activity) Activator.
CreateInstance
(workflowType);
System.Xml (4)
System\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
65
return Add(name, (SchemaImporterExtension)Activator.
CreateInstance
(type));
System\Xml\Serialization\Compilation.cs (2)
119
contract = (XmlSerializerImplementation)Activator.
CreateInstance
(GetTypeFromAssembly(this.assembly, "XmlSerializerContract"));
232
contract = (XmlSerializerImplementation)Activator.
CreateInstance
(contractType);
System\Xml\Serialization\Mappings.cs (1)
1185
IXmlSerializable serializable = (IXmlSerializable)Activator.
CreateInstance
(type);
WindowsBase (1)
Base\System\Windows\DependencyProperty.cs (1)
339
defaultValue = Activator.
CreateInstance
(propertyType);
WsatConfig (2)
Configuration\FirewallWrapper.cs (2)
30
this.manager = (INetFirewallMgr)Activator.
CreateInstance
(Type.GetTypeFromCLSID(new Guid(FwMgrClassId)));
72
INetFirewallOpenPort openPort = (INetFirewallOpenPort)Activator.
CreateInstance
(Type.GetTypeFromCLSID(new Guid(FwOpenPortClassId)));
WsatUI (2)
Configuration\FirewallWrapper.cs (2)
30
this.manager = (INetFirewallMgr)Activator.
CreateInstance
(Type.GetTypeFromCLSID(new Guid(FwMgrClassId)));
72
INetFirewallOpenPort openPort = (INetFirewallOpenPort)Activator.
CreateInstance
(Type.GetTypeFromCLSID(new Guid(FwOpenPortClassId)));
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (1)
705
extension = Activator.
CreateInstance
(extensionType) as T;