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