553 references to Activator
mscorlib (70)
system\__comobject.cs (2)
191Object EvProvider = Activator.CreateInstance(t, Activator.ConstructorDefault | BindingFlags.NonPublic, null, new Object[]{this}, null);
system\activator.cs (11)
82bindingAttr |= Activator.ConstructorDefault; 113Activator.ConstructorDefault, 125Activator.ConstructorDefault, 134return Activator.CreateInstance(type, false); 151Activator.ConstructorDefault, 171Activator.ConstructorDefault, 245Activator.ConstructorDefault, 350Object o = Activator.CreateInstance(type, 441Object o = Activator.CreateInstance(t, 653Object o = Activator.CreateInstance(t, 654Activator.ConstructorDefault,
system\appdomain.cs (12)
1127ObjectHandle oh = Activator.CreateInstance(AppDomain.CurrentDomain.ActivationContext); 1563return Activator.CreateInstance(assemblyName, 1584return Activator.CreateInstanceFrom(assemblyFile, 1609return Activator.CreateComInstanceFrom(assemblyName, 1625return Activator.CreateComInstanceFrom(assemblyFile, 1646return Activator.CreateInstance(assemblyName, 1663return Activator.CreateInstanceFrom(assemblyFile, 1695return Activator.CreateInstance(assemblyName, 1724return Activator.CreateInstance(assemblyName, 1781return Activator.CreateInstanceFrom(assemblyFile, 1808return Activator.CreateInstanceFrom(assemblyFile, 4004oh = Activator.CreateInstance(ad.ActivationContext);
system\cominterfaces.cs (1)
21[TypeLibImportClassAttribute(typeof(System.Activator))]
system\diagnostics\eventing\eventsource.cs (2)
3172attr = (Attribute)Activator.CreateInstance(attributeType, new object[] { data.ConstructorArguments[0].Value }); 3176attr = (Attribute)Activator.CreateInstance(attributeType);
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
361return Activator.CreateInstance(type, parameters);
system\diagnostics\stacktrace.cs (1)
183object target = Activator.CreateInstance(symbolsType);
system\Lazy.cs (1)
450boxed = new Boxed((T)Activator.CreateInstance(typeof(T)));
system\reflection\assembly.cs (2)
1017return Activator.CreateInstance(t, 2831retval = (IPermission) Activator.CreateInstance(type, webArgs);
system\reflection\emit\assemblybuilder.cs (2)
722writer = (ISymbolWriter)Activator.CreateInstance(symWriter); 923writer = (ISymbolWriter)Activator.CreateInstance(symWriter);
system\resources\filebasedresourcegroveler.cs (1)
172return (ResourceSet)Activator.CreateInstance(_mediator.UserResourceSet, args);
system\resources\manifestbasedresourcegroveler.cs (4)
351IResourceReader reader = (IResourceReader)Activator.CreateInstance(readerType, args); 371ResourceSet rs = (ResourceSet)Activator.CreateInstance(resSetType, 409rs = (ResourceSet)Activator.CreateInstance(_mediator.UserResourceSet, args); 416rs = (ResourceSet)Activator.CreateInstance(_mediator.UserResourceSet, args);
system\resources\resourcemanager.cs (1)
1017return (WindowsRuntimeResourceManagerBase)Activator.CreateInstance(WinRTResourceManagerType, true);
system\rttype.cs (2)
4626return Activator.CreateInstance(this, bindingFlags, binder, providedArgs, culture); 5321server = Activator.CreateInstance(this, true);
system\runtime\compilerservices\ConditionalWeakTable.cs (1)
280return GetValue(key, k => Activator.CreateInstance<TValue>());
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (2)
360return Activator.CreateInstance(specificType, new Object[] { propType.Value, obj }); 455return Activator.CreateInstance(specificType, new Object[] { propType.Value, obj });
system\runtime\interopservices\windowsruntime\managedactivationfactory.cs (1)
59return Activator.CreateInstance(m_type);
system\runtime\remoting\activationservices.cs (2)
226retObj = (MarshalByRefObject)Activator.CreateInstance(serverType, true); 1355Object server = Activator.CreateInstance(
system\runtime\remoting\configuration.cs (5)
505channel = (IChannel)Activator.CreateInstance(type, 640sinkProvider = Activator.CreateInstance(type, 1087Activator.CreateInstance( 1098Activator.CreateInstance( 1584obj = (MarshalByRefObject)Activator.CreateInstance(serverType, true);
system\runtime\remoting\message.cs (3)
548args[i] = Activator.CreateInstance(paramType, true); 3531args[outArg] = Activator.CreateInstance(type, true); 4400fault = (Exception)Activator.CreateInstance(
system\runtime\remoting\redirectionproxy.cs (2)
57MarshalByRefObject obj = (MarshalByRefObject)Activator.CreateInstance(_serverType, true); 134_comObject = (MarshalByRefObject)Activator.CreateInstance(_serverType, true);
system\runtime\remoting\serveridentity.cs (1)
278Activator.CreateInstance((Type)_srvType, true);
system\security\cryptography\cryptoconfig.cs (3)
636MethodBase[] cons = rtType.GetConstructors(Activator.ConstructorDefault); 656RuntimeConstructorInfo rci = Type.DefaultBinder.BindToMethod(Activator.ConstructorDefault, 670retval = rci.Invoke(Activator.ConstructorDefault, Type.DefaultBinder, args, null);
system\security\permissionset.cs (1)
472return (IPermission) Activator.CreateInstance(perm_type, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public, null, objs, null );
system\security\policy\applicationsecuritymanager.cs (1)
176IApplicationTrustManager appTrustManager = Activator.CreateInstance(tmClass) as IApplicationTrustManager;
system\security\util\xmlutil.cs (3)
422perm = (IPermission) Activator.CreateInstance(permClass, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public, null, objs, null ); 494group = (CodeGroup) Activator.CreateInstance(groupClass, true); 628cond = (IMembershipCondition) Activator.CreateInstance(condClass, true);
system\threading\LazyInitializer.cs (1)
260return (T)Activator.CreateInstance(typeof(T));
system\threading\synchronizationcontext.cs (1)
324s_winRTContextFactory = factory = (WinRTSynchronizationContextFactoryBase)Activator.CreateInstance(factoryType, true);
PresentationBuildTasks (3)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2692CodeMethodReferenceExpression cmreCI = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(Activator)), "CreateInstance");
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (1)
81serializer = Activator.CreateInstance(
Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
3337o = Activator.CreateInstance(t,
PresentationCore (1)
Core\CSharp\System\Windows\Media\Effects\Generated\ShaderEffect.cs (1)
176return (Freezable)Activator.CreateInstance(this.GetType());
PresentationFramework (25)
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\AppModel\XappLauncher.cs (1)
311ObjectHandle oh = Activator.CreateInstance(_context);
src\Framework\MS\Internal\Data\ViewManager.cs (1)
595icv = Activator.CreateInstance(collectionViewType,
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\Data\ObjectDataProvider.cs (1)
460instance = Activator.CreateInstance(_objectType, 0, null, parameters,
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\Interop\DocobjHost.cs (1)
1375ObjectHandle oh = Activator.CreateInstance(_context);
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 (3)
2849ith = (InternalTypeHelper)Activator.CreateInstance(ithType); 2867instance = Activator.CreateInstance(type, 3337o = Activator.CreateInstance(t,
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 (10)
compmod\system\codedom\compiler\CompilerInfo.cs (1)
86return (CodeDomProvider)Activator.CreateInstance(CodeDomProviderType);
compmod\system\componentmodel\TypeDescriptor.cs (1)
480prov = (TypeDescriptionProvider)Activator.CreateInstance(providerType);
compmod\system\security\permissions\ResourcePermissionBase.cs (1)
194return (ResourcePermissionBase)Activator.CreateInstance(this.GetType(), BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.CreateInstance, null, null, null);
misc\SecurityUtils.cs (1)
127return Activator.CreateInstance(type, flags, null, args, null);
net\System\Net\_AuthenticationManager2.cs (1)
332moduleToRegister = Activator.CreateInstance(type,
net\System\Net\_AuthenticationManagerDefault.cs (1)
113moduleToRegister = Activator.CreateInstance(type,
net\System\Net\_AutoWebProxyScriptWrapper.cs (1)
549ObjectHandle handle = Activator.CreateInstance(scriptDomain, s_ProxyScriptHelperType.Assembly.FullName, s_ProxyScriptHelperType.FullName, false,
net\System\Net\Configuration\DefaultProxySection.cs (1)
198this.webProxy = (IWebProxy)Activator.CreateInstance(
net\System\Net\Internal.cs (1)
1614creator = (IWebRequestCreate)Activator.CreateInstance(
sys\system\configuration\TypeUtil.cs (1)
18object result = Activator.CreateInstance(type, true); // create non-public types
System.Activities (24)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (2)
198VisualBasicExpressionFactory expressionFactory = (VisualBasicExpressionFactory)Activator.CreateInstance(concreteHelperType); 330VisualBasicExpressionFactory expressionFactory = (VisualBasicExpressionFactory)Activator.CreateInstance(concreteHelperType);
System\Activities\Activity.cs (1)
1519DictionaryArgumentHelper helper = Activator.CreateInstance(concreteHelperType, new object[] { property, propertyDescriptor.Name }) as DictionaryArgumentHelper;
System\Activities\ActivityUtilities.cs (9)
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); 434argumentReference = Activator.CreateInstance(argumentValueGenericType.MakeGenericType(argumentType), referencedArgumentName); 439argumentReference = Activator.CreateInstance(argumentReferenceGenericType.MakeGenericType(argumentType), referencedArgumentName); 449Variable variable = (Variable)Activator.CreateInstance(variableType); 1456existingInstance = (ILocationReferenceExpression)Activator.CreateInstance(
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 (2)
44THandle value = Activator.CreateInstance<THandle>(); 77object value = Activator.CreateInstance(handleType);
System\Activities\Location.cs (1)
282return Activator.CreateInstance<T>();
System\Activities\RuntimeArgument.cs (2)
200argument = (Argument) Activator.CreateInstance(this.bindingProperty.PropertyType); 254argument = (Argument)Activator.CreateInstance(targetProperty.PropertyType);
System\Activities\Statements\MethodExecutor.cs (1)
89Activator.CreateInstance(formalParameters[i].ParameterType, paramArrayCount);
System\Activities\XamlIntegration\ActivityWithResultConverter.cs (1)
104this.locationHelper = (LocationHelper)Activator.CreateInstance(concreteHelperType);
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
331ICompiledExpressionRoot compiledExpressionRoot = Activator.CreateInstance(compiledExpressionRootType, new object[] { dynamicActivity }) as ICompiledExpressionRoot;
System\Activities\XamlIntegration\FuncFactory.cs (1)
76return (FuncFactory)Activator.CreateInstance(closedType, objectWriterFactory, xamlReader);
System\Activities\XamlIntegration\TypeConverterBase.cs (1)
119return (TypeConverterHelper)Activator.CreateInstance(concreteHelperType);
System.Activities.Core.Presentation (16)
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\GenericFlowSwitchHelper.cs (1)
513object mutableKVPair = Activator.CreateInstance(caseType, new object[] { newKey, newCase });
System\Activities\Core\Presentation\InvokeDelegateDesigner.xaml.cs (1)
160object mutableKVPair = Activator.CreateInstance(dictionaryEntryType, new object[] { arg.Name, argument });
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\SwitchDesigner.xaml.cs (1)
410object mutableKVPair = Activator.CreateInstance(caseType, new object[] { newKey, null });
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (3)
334object catchObject = Activator.CreateInstance(catchType); 337object activityAction = Activator.CreateInstance(activityActionType); 340object exceptionArgument = Activator.CreateInstance(argumentType);
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (1)
442object mutableKVPair = Activator.CreateInstance(dictionaryEntryType, new object[] { wrapper.Name, argument });
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 (31)
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 (3)
126return (ActivityWithResult)Activator.CreateInstance(concreteExpType, converterValue); 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\ModelItemDictionaryImpl.cs (1)
761object mutableKVPair = Activator.CreateInstance(this.ItemsCollectionKVPType, new object[] { key == null ? null : key.GetCurrentValue(), value != null ? value.GetCurrentValue() : null });
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
450SearchableStringConverter converter = Activator.CreateInstance(converterType) as SearchableStringConverter;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (1)
137Object instance = Activator.CreateInstance(itemType, arguments);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
1328return Activator.CreateInstance(this.PropertyType, new object[] { component });
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\DataGridHelper.cs (1)
553EditingControlBehavior behavior = Activator.CreateInstance(editorBehaviorType, this.dataGrid) as EditingControlBehavior;
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 (2)
1031newExpression = (ActivityWithResult)Activator.CreateInstance(targetExpressionType, expressionText); 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.AddIn (4)
System\Addin\Hosting\AddInActivator.cs (1)
345ObjectHandle objHandle = Activator.CreateInstance(domain, t.Assembly.FullName, t.FullName,
System\Addin\Hosting\AddInServer.cs (1)
67ObjectHandle workerHandle = Activator.CreateInstance(domain, sysCore.FullName, typeof(AddInServerWorker).FullName);
System\Addin\Hosting\AddInStore.cs (1)
1154ObjectHandle inspectionWorkerHandle = Activator.CreateInstance(domain, typeof(InspectionWorker).Assembly.FullName, typeof(InspectionWorker).FullName);
System\Addin\Hosting\RemotingHelper.cs (1)
67return (AddInServer)Activator.GetObject(Type.GetType(@"System.AddIn.Hosting.AddInServer")
System.Configuration (2)
System\Configuration\TypeUtil.cs (2)
114object result = Activator.CreateInstance(type, true); // create non-public types 137ilGen.Emit(OpCodes.Call, typeof(Activator).GetMethod("CreateInstance", new Type[] { typeof(Type), typeof(bool) })); // stack = { retVal }
System.Core (3)
System\Linq\SequenceQuery.cs (3)
25return (IQueryable) Activator.CreateInstance(seqType, BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic, null, new object[] {sequence}, null); 34return (IQueryable) Activator.CreateInstance(seqType, BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic, null, new object[] {expression}, null); 155return (EnumerableExecutor)Activator.CreateInstance(execType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, new object[] { expression }, null);
System.Data (46)
cdf\src\NetFx40\Tools\System.Activities.Core.Presentation\System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (1)
410object mutableKVPair = Activator.CreateInstance(caseType, new object[] { newKey, null });
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 (3)
126return (ActivityWithResult)Activator.CreateInstance(concreteExpType, converterValue); 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\ModelItemDictionaryImpl.cs (1)
761object mutableKVPair = Activator.CreateInstance(this.ItemsCollectionKVPType, new object[] { key == null ? null : key.GetCurrentValue(), value != null ? value.GetCurrentValue() : null });
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\ModelServiceImpl.cs (1)
137Object instance = Activator.CreateInstance(itemType, arguments);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
1328return Activator.CreateInstance(this.PropertyType, new object[] { component });
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\DataGridHelper.cs (1)
553EditingControlBehavior behavior = Activator.CreateInstance(editorBehaviorType, this.dataGrid) as EditingControlBehavior;
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 (2)
1031newExpression = (ActivityWithResult)Activator.CreateInstance(targetExpressionType, expressionText); 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\Common\DataAdapter.cs (1)
286DataAdapter clone = (DataAdapter)Activator.CreateInstance(GetType(), System.Reflection.BindingFlags.Public|System.Reflection.BindingFlags.Instance, null, null, CultureInfo.InvariantCulture, null);
fx\src\data\System\Data\Common\DBDataPermission.cs (1)
138return (Activator.CreateInstance(GetType(), System.Reflection.BindingFlags.Public|System.Reflection.BindingFlags.Instance, null, null, CultureInfo.InvariantCulture, null) as DBDataPermission);
fx\src\data\System\Data\Common\ObjectStorage.cs (2)
286object Obj = System.Activator.CreateInstance(DataType, true); 346retValue = System.Activator.CreateInstance (type, true);
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (2)
141object Obj = System.Activator.CreateInstance (DataType, true); 169object Obj = System.Activator.CreateInstance (type, true);
fx\src\data\System\Data\DataColumn.cs (1)
1479DataColumn clone = (DataColumn)Activator.CreateInstance(this.GetType());
fx\src\data\System\Data\DataSet.cs (1)
1105DataSet ds = (DataSet)Activator.CreateInstance(this.GetType(), true);
fx\src\data\System\Data\DataTable.cs (1)
2141return (DataTable) Activator.CreateInstance(this.GetType(), true);
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
645return Activator.CreateInstance(datalink, System.Reflection.BindingFlags.Public|System.Reflection.BindingFlags.Instance, null, null, CultureInfo.InvariantCulture, null);
fx\src\data\System\Data\OleDb\OleDbEnumerator.cs (1)
41object value = Activator.CreateInstance(type, System.Reflection.BindingFlags.Public|System.Reflection.BindingFlags.Instance, null, null, CultureInfo.InvariantCulture, null);
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 (6)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (1)
187CoordinatorFactory result = (CoordinatorFactory)Activator.CreateInstance(typeof(CoordinatorFactory<>).MakeGenericType(_elementType), new object[] {
System\Data\Common\Internal\Materialization\RecordStateScratchpad.cs (1)
76RecordStateFactory result = (RecordStateFactory)Activator.CreateInstance(typeof(RecordStateFactory), new object[] {
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 (26)
ChangeTracker.cs (1)
526object copy = Activator.CreateInstance(this.Type.Type);
DataBindingList.cs (1)
18return (IBindingList)Activator.CreateInstance(bindingType,
DataContext.cs (4)
166return Activator.CreateInstance(this.GetType(), new object[] { this.Connection, this.Mapping.MappingSource }); 187this.provider = (IProvider)Activator.CreateInstance(providerType); 397tb = (ITable)Activator.CreateInstance(tbType, BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic, null, new object[] { this, metaTable }, null); 1156return (IQueryable)Activator.CreateInstance(dqType, new object[] { this.context, expression });
DataQuery.cs (1)
42return (IQueryable)Activator.CreateInstance(dqType, new object[] { this.context, expression });
DataServices.cs (1)
292factory = (IDeferredSourceFactory) Activator.CreateInstance(
IdentityManager.cs (3)
64this.currentCache = (IdentityCache)Activator.CreateInstance( 80KeyManager km = (KeyManager)Activator.CreateInstance( 88Activator.CreateInstance(
Mapping\Accessors.cs (2)
57return (MetaAccessor)Activator.CreateInstance( 125return (MetaAccessor)Activator.CreateInstance(
Mapping\AttributedMetaModel.cs (1)
1304return (MetaAccessor)Activator.CreateInstance(accessorType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, args, null);
Mapping\MappedMetaModel.cs (1)
1209return (MetaAccessor)Activator.CreateInstance(accessorType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, args, null);
parent\parent\misc\SecurityUtils.cs (1)
127return Activator.CreateInstance(type, flags, null, args, null);
SqlClient\Query\SqlMethodCallConverter.cs (1)
1003sql.ValueFromObject(Activator.CreateInstance(clrType), mc.SourceExpression));
SqlClient\Reader\ObjectReaderCompiler.cs (3)
209factory = (IObjectReaderFactory)Activator.CreateInstance( 260return (IObjectReaderSession)Activator.CreateInstance(sessionType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, 2178this.globals.Add(Activator.CreateInstance(typeof(StrongBox<>).MakeGenericType(type), new object[] { value }));
SqlClient\SqlProvider.cs (6)
545object engine = Activator.CreateInstance(engineType, new object[] { builder.ToString() }); 1017Activator.CreateInstance( 1052IEnumerable sequence = (IEnumerable)Activator.CreateInstance( 1104IEnumerable sequence = (IEnumerable)Activator.CreateInstance( 1115sequence = (IEnumerable)Activator.CreateInstance( 1227return (IEnumerable)Activator.CreateInstance(enumerableType, BindingFlags.Instance | BindingFlags.NonPublic, null, new object[] { e }, null);
System.Data.Services (1)
System\Data\Services\Providers\BasicExpandProvider.cs (1)
188return (IQueryable)Activator.CreateInstance(resultQueryable, args);
System.Data.Services.Client (12)
System\Data\Services\Client\AtomMaterializer.cs (2)
1157result = Activator.CreateInstance(collectionType); 1673entry.ResolvedObject = Activator.CreateInstance(type);
System\Data\Services\Client\ClientConvert.cs (1)
192return Activator.CreateInstance(knownTypes[(int)StorageType.Binary], Convert.FromBase64String(propertyValue));
System\Data\Services\Client\ClientType.cs (1)
639return Activator.CreateInstance(this.ElementType);
System\Data\Services\Client\DataServiceContext.cs (4)
3871collection = Activator.CreateInstance( 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\DataServiceRequest.cs (1)
108return (DataServiceRequest)Activator.CreateInstance(genericType, new object[] { requestUri });
System\Data\Services\Client\MaterializeFromAtom.cs (1)
307IList list = (IList)Activator.CreateInstance(implementationType);
System\Data\Services\Client\QueryResponse.cs (1)
139return (QueryOperationResponse)Activator.CreateInstance(
System\Data\Services\Client\Util.cs (1)
514return Activator.CreateInstance(type, arguments);
System.Data.SqlXml (2)
System\Xml\Xsl\XsltOld\Compiler.cs (1)
731lang == ScriptingLanguage.JScript ? (CodeDomProvider) Activator.CreateInstance(Type.GetType("Microsoft.JScript.JScriptCodeProvider, " + AssemblyRef.MicrosoftJScript), BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.CreateInstance, null, null, null) :
System\Xml\Xsl\XsltOld\Processor.cs (1)
339scriptExtensions.Add(namespaceUri, Activator.CreateInstance((Type)entry.Value,
System.Drawing (1)
commonui\System\Drawing\Printing\PrintDocument.cs (1)
144printController = (PrintController) Activator.CreateInstance(type,
System.IdentityModel (2)
System\IdentityModel\Configuration\SecurityTokenServiceConfiguration.cs (1)
191return Activator.CreateInstance(stsType, this) as STS;
System\IdentityModel\Configuration\TypeResolveHelper.cs (1)
50T createdObject = (T)Activator.CreateInstance(
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.Caching (1)
System\Caching\SRef.cs (1)
18_sizedRef = Activator.CreateInstance(s_type,
System.Runtime.Remoting (3)
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));
services\remotingclientproxy.cs (1)
43_tp = Activator.GetObject(_type, _url);
System.Runtime.Serialization (1)
System\Runtime\Serialization\SchemaExporter.cs (1)
700IXmlSerializable ixmlSerializable = (IXmlSerializable)Activator.CreateInstance(clrType);
System.ServiceModel (34)
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 (2)
51return System.Activator.CreateInstance<CustomBinding>(); 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\StandardBindingCollectionElement.cs (1)
52return System.Activator.CreateInstance<TStandardBinding>();
System\ServiceModel\Configuration\StandardEndpointCollectionElement.cs (1)
53return System.Activator.CreateInstance<TEndpointConfiguration>();
System\ServiceModel\Configuration\StandardRuntimeFlagEnumValidatorAttribute.cs (1)
100return (ConfigurationValidatorBase)Activator.CreateInstance(validatorType, null);
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\MetadataSet.cs (1)
589o.@Metadata = (global::System.ServiceModel.Description.MetadataReference)ReadSerializable((System.Xml.Serialization.IXmlSerializable)System.Activator.CreateInstance(typeof(global::System.ServiceModel.Description.MetadataReference), System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.CreateInstance | System.Reflection.BindingFlags.NonPublic, null, new object[0], null));
System\ServiceModel\Description\OperationGenerator.cs (1)
992Attribute defaultAttribute = (Attribute)Activator.CreateInstance(attributeType);
System\ServiceModel\Dispatcher\FaultFormatter.cs (2)
161return (FaultException)Activator.CreateInstance(knownFaultType, 196return (MessageFault)Activator.CreateInstance(operationFaultType, serializer, faultException);
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
161object typeMessageInstance = Activator.CreateInstance(
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\MsmqException.cs (1)
149return Activator.CreateInstance(this.outerExceptionType, new object[] { this.Message, this }) as Exception;
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 (3)
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\ServiceHostingEnvironment.cs (1)
1988return Activator.CreateInstance(type,
System.ServiceModel.Internals (1)
System\Runtime\TypeHelper.cs (1)
574return Activator.CreateInstance(type);
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\Configuration\RoutingSection.cs (1)
617return (MessageFilter)Activator.CreateInstance(customFilterType, filterData);
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 (47)
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\HttpCapabilitiesBase.cs (1)
179writer = (HtmlTextWriter)Activator.CreateInstance(writerType, arr);
Configuration\HttpCapabilitiesEvaluator.cs (1)
88_browserCapabilitiesProvider = (HttpCapabilitiesProvider)Activator.CreateInstance(t);
Configuration\HttpConfigurationSystem.cs (2)
87s_configSystem = (IConfigSystem) Activator.CreateInstance(typeConfigSystem, true); 114s_configSettingsFactory = (IInternalConfigSettingsFactory) Activator.CreateInstance(typeFactory, true);
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);
Configuration\WebConfigurationHost.cs (2)
81Host = (IInternalConfigHost) Activator.CreateInstance(type, true); 834s_configurationFactory = (IInternalConfigConfigurationFactory) Activator.CreateInstance(type, true);
Hosting\ApplicationManager.cs (2)
1298h = Activator.CreateInstance(appDomain, module, typeName); 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 (4)
3414return Activator.CreateInstance( 3423return Activator.CreateInstance(type); 3491return Activator.CreateInstance(type); 3493return Activator.CreateInstance(type, args);
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;
parent\parent\parent\Misc\SecurityUtils.cs (1)
127return Activator.CreateInstance(type, flags, null, args, 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);
UI\WebParts\WebPartManager.cs (2)
1801connectionPoint = (ConsumerConnectionPoint)Activator.CreateInstance(connectionPointType, args); 1831connectionPoint = (ProviderConnectionPoint)Activator.CreateInstance(connectionPointType, args);
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.Entity (2)
System\Data\WebControls\EntityDataSourceColumn.cs (1)
350EntityDataSourceReferenceValueColumn result = (EntityDataSourceReferenceValueColumn)Activator.CreateInstance(columnType, ocWorkspace, navigationProperty);
System\Data\WebControls\EntityDataSourceReferenceGroup.cs (1)
50return (EntityDataSourceReferenceGroup)Activator.CreateInstance(groupType, new object[] { end });
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceStatementEditorForm.cs (1)
161this._parameterEditorUserControl = (ParameterEditorUserControl)Activator.CreateInstance(typeof(ParameterEditorUserControl), BindingFlags.NonPublic | BindingFlags.Instance, null, new object[] { ServiceProvider, _entityDataSource }, null);
System.Web.Extensions (12)
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (1)
464ClientFormsAuthenticationCredentials creds = ((IClientFormsAuthenticationCredentialsProvider)Activator.CreateInstance(_GetCredentialsType)).GetCredentials();
ClientServices\Providers\SqlHelper.cs (3)
214using (IDisposable engine = (IDisposable)Activator.CreateInstance(GetSqlCeType("SqlCeEngine"), new object[] { connectionString })) { 279DbConnection conn = (DbConnection) Activator.CreateInstance(_SqlCeConnectionType, new object[] {connectionString}); 291cmd.Parameters.Add((DbParameter) Activator.CreateInstance(_SqlCeParamType, new object[]{paramName, paramValue}));
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 (7)
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\Design\Util\DesignerUtility.cs (1)
86Object serviceInstance = System.Activator.CreateInstance(
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 (34)
misc\SecurityUtils.cs (1)
127return Activator.CreateInstance(type, flags, null, args, null);
winforms\Managed\System\Resources\ResXFileRef.cs (1)
325created = Activator.CreateInstance(toCreate, BindingFlags.Instance | BindingFlags.Public | BindingFlags.CreateInstance, null, new Object[] {memStream}, null);
winforms\Managed\System\WinForms\ColumnHeader.cs (1)
442columnHeader = (ColumnHeader)Activator.CreateInstance(clonedType);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (2)
168attr = (Attribute)Activator.CreateInstance(t, new Object[]{varParams[i]}); 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 (22)
Common\CompilerHelpers.cs (2)
66provider = (CodeDomProvider)Activator.CreateInstance(type); 73provider = (CodeDomProvider)Activator.CreateInstance(type, new object[] { options });
Common\CompModHelpers.cs (2)
1052CompositeActivity activity = Activator.CreateInstance(compositeActivity.GetType()) as CompositeActivity; 1199Activity newCustomActivity = Activator.CreateInstance(declaringActivity.GetType()) as Activity;
Designers\WebServiceReceiveDesigner.cs (1)
120typeFilterProvider = Activator.CreateInstance(typeFilterProviderType, new object[] { this.ServiceProvider }) as ITypeFilterProvider;
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);
LocalService\WorkflowMessageEventHandler.cs (1)
96return (Delegate)Activator.CreateInstance(eventHandlerType, new object[] { this, mHandler.MethodHandle.GetFunctionPointer() });
Rules\Executor.cs (7)
809converted = Activator.CreateInstance(toType); 854converted = Activator.CreateInstance(toType, converted); 882converted = Activator.CreateInstance(toType, converted); 897converted = Activator.CreateInstance(toType, converted); 912converted = Activator.CreateInstance(toType, converted); 927converted = Activator.CreateInstance(toType, converted); 939converted = Activator.CreateInstance(toType, converted);
Rules\Expressions.cs (2)
2087object fromValueDefault = Activator.CreateInstance(fromType2); 3042return new RuleLiteralResult(Activator.CreateInstance(expressionInfo.ExpressionType));
Rules\RuleValidation.cs (3)
442return Activator.CreateInstance(resultType); 707result = Activator.CreateInstance(resultType, result); 720result = Activator.CreateInstance(resultType, result);
System.Workflow.ComponentModel (31)
AuthoringOM\ActivityExecutor.cs (1)
224typeToExecutorMapping[executorType] = Activator.CreateInstance(executorType);
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (1)
122Attribute attribute = (Attribute)Activator.CreateInstance(attributeType, constructorArguments.ToArray());
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\ActivityDesigner.cs (1)
2029designer = Activator.CreateInstance(designerType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.CreateInstance, null, null, null) as IDesigner;
AuthoringOM\Design\CustomActivityDesigner.cs (1)
164ToolboxItem item = Activator.CreateInstance(toolboxItemAttrib.ToolboxItemType, new object[] { rootActivity.GetType() }) as ToolboxItem;
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
558defaultIndexerInstance = Activator.CreateInstance(indexType);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (3)
1011ActivityToolboxItem item = Activator.CreateInstance(toolboxItemAttrib.ToolboxItemType, new object[] { activityType }) as ActivityToolboxItem; 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\Themes.cs (2)
764designerTheme = Activator.CreateInstance(themeAttrib.DesignerThemeType, new object[] { this }) as DesignerTheme; 966return Activator.CreateInstance(type, new object[] { serializationManager.Context[typeof(WorkflowTheme)] });
AuthoringOM\Design\TypeConverters.cs (2)
68return Activator.CreateInstance(this.conditionDecls[value] as Type); 113conditionDeclList.Add(Activator.CreateInstance(declType));
AuthoringOM\Design\UITypeEditors.cs (1)
58typeFilterProvider = Activator.CreateInstance(typeFilterProviderType, new object[] { serviceProvider }) as ITypeFilterProvider;
AuthoringOM\Design\WinOEToolBoxItem.cs (1)
129ToolboxItem item = Activator.CreateInstance(toolboxItemAttrib.ToolboxItemType, new object[] { activityType }) as ToolboxItem;
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\PropertySegmentSerializer.cs (1)
35return Activator.CreateInstance(type, new object[] { serializationManager as IServiceProvider, serializationManager.Context.Current });
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (4)
1357return Activator.CreateInstance(type); 2590obj = Activator.CreateInstance(type, positionalArgs.ToArray()); 2594obj = Activator.CreateInstance(type); 2597obj = Activator.CreateInstance(type);
Shared\CompilerHelpers.cs (2)
64provider = (CodeDomProvider)Activator.CreateInstance(type); 71provider = (CodeDomProvider)Activator.CreateInstance(type, new object[] { options });
Shared\CompModHelpers.cs (2)
1050CompositeActivity activity = Activator.CreateInstance(compositeActivity.GetType()) as CompositeActivity; 1197Activity newCustomActivity = Activator.CreateInstance(declaringActivity.GetType()) as Activity;
System.Workflow.Runtime (7)
DebugEngine\DebugController.cs (2)
487this.controllerConduit = Activator.GetObject(Type.GetType(controllerConduitTypeName), url.AbsolutePath) as IWorkflowDebugger; 512this.controllerConduit = Activator.GetObject(controllerConduitType, url.AbsolutePath) as IWorkflowDebugger;
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 (7)
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\Workflow\Runtime\Hosting\ChannelManagerHelpers.cs (1)
198factory = Activator.CreateInstance(channelFactoryType, args) as ChannelFactory;
System.Xaml.Hosting (2)
System\Xaml\Hosting\XamlBuildProvider.cs (1)
161xamlBuildProviderExtensionFactory = (IXamlBuildProviderExtensionFactory)Activator.CreateInstance(httpHandlerType,
System\Xaml\Hosting\XamlHttpHandlerFactory.cs (1)
50return Activator.CreateInstance(type,
System.Xml (6)
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);
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3703createInstance.Append(typeof(Activator).FullName);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2351MethodInfo Activator_CreateInstance = typeof(Activator).GetMethod(
WindowsBase (3)
Base\MS\Internal\AssemblyHelper.cs (1)
227handle = Activator.CreateInstance(extensionAssemblyName, extensionTypeName);
Base\System\Windows\DependencyProperty.cs (1)
339defaultValue = Activator.CreateInstance(propertyType);
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
471typeConverter = Activator.CreateInstance(converterType,
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;