553 references to Activator
mscorlib (70)
system\__comobject.cs (2)
191
Object EvProvider =
Activator
.CreateInstance(t,
Activator
.ConstructorDefault | BindingFlags.NonPublic, null, new Object[]{this}, null);
system\activator.cs (11)
82
bindingAttr |=
Activator
.ConstructorDefault;
113
Activator
.ConstructorDefault,
125
Activator
.ConstructorDefault,
134
return
Activator
.CreateInstance(type, false);
151
Activator
.ConstructorDefault,
171
Activator
.ConstructorDefault,
245
Activator
.ConstructorDefault,
350
Object o =
Activator
.CreateInstance(type,
441
Object o =
Activator
.CreateInstance(t,
653
Object o =
Activator
.CreateInstance(t,
654
Activator
.ConstructorDefault,
system\appdomain.cs (12)
1127
ObjectHandle oh =
Activator
.CreateInstance(AppDomain.CurrentDomain.ActivationContext);
1563
return
Activator
.CreateInstance(assemblyName,
1584
return
Activator
.CreateInstanceFrom(assemblyFile,
1609
return
Activator
.CreateComInstanceFrom(assemblyName,
1625
return
Activator
.CreateComInstanceFrom(assemblyFile,
1646
return
Activator
.CreateInstance(assemblyName,
1663
return
Activator
.CreateInstanceFrom(assemblyFile,
1695
return
Activator
.CreateInstance(assemblyName,
1724
return
Activator
.CreateInstance(assemblyName,
1781
return
Activator
.CreateInstanceFrom(assemblyFile,
1808
return
Activator
.CreateInstanceFrom(assemblyFile,
4004
oh =
Activator
.CreateInstance(ad.ActivationContext);
system\cominterfaces.cs (1)
21
[TypeLibImportClassAttribute(typeof(System.
Activator
))]
system\diagnostics\eventing\eventsource.cs (2)
3172
attr = (Attribute)
Activator
.CreateInstance(attributeType, new object[] { data.ConstructorArguments[0].Value });
3176
attr = (Attribute)
Activator
.CreateInstance(attributeType);
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
361
return
Activator
.CreateInstance(type, parameters);
system\diagnostics\stacktrace.cs (1)
183
object target =
Activator
.CreateInstance(symbolsType);
system\Lazy.cs (1)
450
boxed = new Boxed((T)
Activator
.CreateInstance(typeof(T)));
system\reflection\assembly.cs (2)
1017
return
Activator
.CreateInstance(t,
2831
retval = (IPermission)
Activator
.CreateInstance(type, webArgs);
system\reflection\emit\assemblybuilder.cs (2)
722
writer = (ISymbolWriter)
Activator
.CreateInstance(symWriter);
923
writer = (ISymbolWriter)
Activator
.CreateInstance(symWriter);
system\resources\filebasedresourcegroveler.cs (1)
172
return (ResourceSet)
Activator
.CreateInstance(_mediator.UserResourceSet, args);
system\resources\manifestbasedresourcegroveler.cs (4)
351
IResourceReader reader = (IResourceReader)
Activator
.CreateInstance(readerType, args);
371
ResourceSet rs = (ResourceSet)
Activator
.CreateInstance(resSetType,
409
rs = (ResourceSet)
Activator
.CreateInstance(_mediator.UserResourceSet, args);
416
rs = (ResourceSet)
Activator
.CreateInstance(_mediator.UserResourceSet, args);
system\resources\resourcemanager.cs (1)
1017
return (WindowsRuntimeResourceManagerBase)
Activator
.CreateInstance(WinRTResourceManagerType, true);
system\rttype.cs (2)
4626
return
Activator
.CreateInstance(this, bindingFlags, binder, providedArgs, culture);
5321
server =
Activator
.CreateInstance(this, true);
system\runtime\compilerservices\ConditionalWeakTable.cs (1)
280
return GetValue(key, k =>
Activator
.CreateInstance<TValue>());
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (2)
360
return
Activator
.CreateInstance(specificType, new Object[] { propType.Value, obj });
455
return
Activator
.CreateInstance(specificType, new Object[] { propType.Value, obj });
system\runtime\interopservices\windowsruntime\managedactivationfactory.cs (1)
59
return
Activator
.CreateInstance(m_type);
system\runtime\remoting\activationservices.cs (2)
226
retObj = (MarshalByRefObject)
Activator
.CreateInstance(serverType, true);
1355
Object server =
Activator
.CreateInstance(
system\runtime\remoting\configuration.cs (5)
505
channel = (IChannel)
Activator
.CreateInstance(type,
640
sinkProvider =
Activator
.CreateInstance(type,
1087
Activator
.CreateInstance(
1098
Activator
.CreateInstance(
1584
obj = (MarshalByRefObject)
Activator
.CreateInstance(serverType, true);
system\runtime\remoting\message.cs (3)
548
args[i] =
Activator
.CreateInstance(paramType, true);
3531
args[outArg] =
Activator
.CreateInstance(type, true);
4400
fault = (Exception)
Activator
.CreateInstance(
system\runtime\remoting\redirectionproxy.cs (2)
57
MarshalByRefObject obj = (MarshalByRefObject)
Activator
.CreateInstance(_serverType, true);
134
_comObject = (MarshalByRefObject)
Activator
.CreateInstance(_serverType, true);
system\runtime\remoting\serveridentity.cs (1)
278
Activator
.CreateInstance((Type)_srvType, true);
system\security\cryptography\cryptoconfig.cs (3)
636
MethodBase[] cons = rtType.GetConstructors(
Activator
.ConstructorDefault);
656
RuntimeConstructorInfo rci = Type.DefaultBinder.BindToMethod(
Activator
.ConstructorDefault,
670
retval = rci.Invoke(
Activator
.ConstructorDefault, Type.DefaultBinder, args, null);
system\security\permissionset.cs (1)
472
return (IPermission)
Activator
.CreateInstance(perm_type, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public, null, objs, null );
system\security\policy\applicationsecuritymanager.cs (1)
176
IApplicationTrustManager appTrustManager =
Activator
.CreateInstance(tmClass) as IApplicationTrustManager;
system\security\util\xmlutil.cs (3)
422
perm = (IPermission)
Activator
.CreateInstance(permClass, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public, null, objs, null );
494
group = (CodeGroup)
Activator
.CreateInstance(groupClass, true);
628
cond = (IMembershipCondition)
Activator
.CreateInstance(condClass, true);
system\threading\LazyInitializer.cs (1)
260
return (T)
Activator
.CreateInstance(typeof(T));
system\threading\synchronizationcontext.cs (1)
324
s_winRTContextFactory = factory = (WinRTSynchronizationContextFactoryBase)
Activator
.CreateInstance(factoryType, true);
PresentationBuildTasks (3)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2692
CodeMethodReferenceExpression cmreCI = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(
Activator
)), "CreateInstance");
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (1)
81
serializer =
Activator
.CreateInstance(
Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
3337
o =
Activator
.CreateInstance(t,
PresentationCore (1)
Core\CSharp\System\Windows\Media\Effects\Generated\ShaderEffect.cs (1)
176
return (Freezable)
Activator
.CreateInstance(this.GetType());
PresentationFramework (25)
src\Framework\Microsoft\Win32\OpenFileDialog.cs (1)
473
return (IFileDialog)
Activator
.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.FileOpenDialog)));
src\Framework\Microsoft\Win32\SaveFileDialog.cs (1)
415
return (IFileDialog)
Activator
.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.FileSaveDialog)));
src\Framework\MS\Internal\AppModel\Journaling.cs (1)
729
pageFunction = (PageFunctionBase)
Activator
.CreateInstance(pfType);
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
311
ObjectHandle oh =
Activator
.CreateInstance(_context);
src\Framework\MS\Internal\Data\ViewManager.cs (1)
595
icv =
Activator
.CreateInstance(collectionViewType,
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (1)
294
filter = (IFilter)
Activator
.CreateInstance(filterType);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1188
header =
Activator
.CreateInstance(headerType) as GridViewColumnHeader;
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1466
return
Activator
.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.WebBrowser)));
src\Framework\System\Windows\Data\ObjectDataProvider.cs (1)
460
instance =
Activator
.CreateInstance(_objectType, 0, null, parameters,
src\Framework\System\Windows\Documents\TextRangeEdit.cs (1)
35
TextElement newElement = (TextElement)
Activator
.CreateInstance(element.GetType());
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
447
element = (TextElement)
Activator
.CreateInstance(_elementType);
src\Framework\System\Windows\Documents\TextTreeExtractElementUndoUnit.cs (1)
69
element = (TextElement)
Activator
.CreateInstance(_type);
src\Framework\System\Windows\FrameworkElementFactory.cs (1)
498
return (DependencyObject)
Activator
.CreateInstance(_type);
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
308
return
Activator
.CreateInstance(Type.GetTypeFromCLSID(clsid));
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
1375
ObjectHandle oh =
Activator
.CreateInstance(_context);
src\Framework\System\Windows\Markup\BamlMapTable.cs (1)
602
tc =
Activator
.CreateInstance(t) as TypeConverter;
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
5339
instance =
Activator
.CreateInstance(type);
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (3)
2849
ith = (InternalTypeHelper)
Activator
.CreateInstance(ithType);
2867
instance =
Activator
.CreateInstance(type,
3337
o =
Activator
.CreateInstance(t,
src\Framework\System\Windows\Shell\JumpList.cs (3)
578
var destinationList = (ICustomDestinationList)
Activator
.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.DestinationList)));
934
var shellObjectCollection = (IObjectCollection)
Activator
.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.EnumerableObjectCollection)));
1030
var link = (IShellLinkW)
Activator
.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.ShellLink)));
src\Framework\System\Windows\Standard\ComGuids.cs (1)
68
return (T)System.
Activator
.CreateInstance(System.Type.GetTypeFromCLSID(new System.Guid(clsid)));
src\Framework\System\Windows\Window.cs (1)
6759
taskbarList = (ITaskbarList)
Activator
.CreateInstance(Type.GetTypeFromCLSID(new Guid(CLSID.TaskbarList)));
System (10)
compmod\system\codedom\compiler\CompilerInfo.cs (1)
86
return (CodeDomProvider)
Activator
.CreateInstance(CodeDomProviderType);
compmod\system\componentmodel\TypeDescriptor.cs (1)
480
prov = (TypeDescriptionProvider)
Activator
.CreateInstance(providerType);
compmod\system\security\permissions\ResourcePermissionBase.cs (1)
194
return (ResourcePermissionBase)
Activator
.CreateInstance(this.GetType(), BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.CreateInstance, null, null, null);
misc\SecurityUtils.cs (1)
127
return
Activator
.CreateInstance(type, flags, null, args, null);
net\System\Net\_AuthenticationManager2.cs (1)
332
moduleToRegister =
Activator
.CreateInstance(type,
net\System\Net\_AuthenticationManagerDefault.cs (1)
113
moduleToRegister =
Activator
.CreateInstance(type,
net\System\Net\_AutoWebProxyScriptWrapper.cs (1)
549
ObjectHandle handle =
Activator
.CreateInstance(scriptDomain, s_ProxyScriptHelperType.Assembly.FullName, s_ProxyScriptHelperType.FullName, false,
net\System\Net\Configuration\DefaultProxySection.cs (1)
198
this.webProxy = (IWebProxy)
Activator
.CreateInstance(
net\System\Net\Internal.cs (1)
1614
creator = (IWebRequestCreate)
Activator
.CreateInstance(
sys\system\configuration\TypeUtil.cs (1)
18
object result =
Activator
.CreateInstance(type, true); // create non-public types
System.Activities (24)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (2)
198
VisualBasicExpressionFactory expressionFactory = (VisualBasicExpressionFactory)
Activator
.CreateInstance(concreteHelperType);
330
VisualBasicExpressionFactory expressionFactory = (VisualBasicExpressionFactory)
Activator
.CreateInstance(concreteHelperType);
System\Activities\Activity.cs (1)
1519
DictionaryArgumentHelper helper =
Activator
.CreateInstance(concreteHelperType, new object[] { property, propertyDescriptor.Name }) as DictionaryArgumentHelper;
System\Activities\ActivityUtilities.cs (9)
376
object variableReference =
Activator
.CreateInstance(genericVariableReferenceType);
390
Argument argument = (Argument)
Activator
.CreateInstance(argumentType);
401
argument = (Argument)
Activator
.CreateInstance(inArgumentOfObjectType);
405
argument = (Argument)
Activator
.CreateInstance(outArgumentOfObjectType);
409
argument = (Argument)
Activator
.CreateInstance(inOutArgumentOfObjectType);
434
argumentReference =
Activator
.CreateInstance(argumentValueGenericType.MakeGenericType(argumentType), referencedArgumentName);
439
argumentReference =
Activator
.CreateInstance(argumentReferenceGenericType.MakeGenericType(argumentType), referencedArgumentName);
449
Variable variable = (Variable)
Activator
.CreateInstance(variableType);
1456
existingInstance = (ILocationReferenceExpression)
Activator
.CreateInstance(
System\Activities\Debugger\DebugInfo.cs (1)
142
LocationHelper helper = (LocationHelper)
Activator
.CreateInstance(locationHelperType);
System\Activities\Debugger\StateManager.cs (1)
247
value =
Activator
.CreateInstance(localsItemDescription.Type);
System\Activities\HandleInitializationContext.cs (2)
44
THandle value =
Activator
.CreateInstance<THandle>();
77
object value =
Activator
.CreateInstance(handleType);
System\Activities\Location.cs (1)
282
return
Activator
.CreateInstance<T>();
System\Activities\RuntimeArgument.cs (2)
200
argument = (Argument)
Activator
.CreateInstance(this.bindingProperty.PropertyType);
254
argument = (Argument)
Activator
.CreateInstance(targetProperty.PropertyType);
System\Activities\Statements\MethodExecutor.cs (1)
89
Activator
.CreateInstance(formalParameters[i].ParameterType, paramArrayCount);
System\Activities\XamlIntegration\ActivityWithResultConverter.cs (1)
104
this.locationHelper = (LocationHelper)
Activator
.CreateInstance(concreteHelperType);
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
331
ICompiledExpressionRoot compiledExpressionRoot =
Activator
.CreateInstance(compiledExpressionRootType, new object[] { dynamicActivity }) as ICompiledExpressionRoot;
System\Activities\XamlIntegration\FuncFactory.cs (1)
76
return (FuncFactory)
Activator
.CreateInstance(closedType, objectWriterFactory, xamlReader);
System\Activities\XamlIntegration\TypeConverterBase.cs (1)
119
return (TypeConverterHelper)
Activator
.CreateInstance(concreteHelperType);
System.Activities.Core.Presentation (16)
System\Activities\Core\Presentation\CaseKeyBox.ViewModel.cs (1)
144
this.Value =
Activator
.CreateInstance(this.ValueType);
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (1)
529
FlowNode clonedObject = (FlowNode)
Activator
.CreateInstance(flowElementType);
System\Activities\Core\Presentation\GenericFlowSwitchHelper.cs (1)
513
object mutableKVPair =
Activator
.CreateInstance(caseType, new object[] { newKey, newCase });
System\Activities\Core\Presentation\InvokeDelegateDesigner.xaml.cs (1)
160
object mutableKVPair =
Activator
.CreateInstance(dictionaryEntryType, new object[] { arg.Name, argument });
System\Activities\Core\Presentation\MorphHelpers.cs (5)
70
object activityAction =
Activator
.CreateInstance(activityActionType);
77
DelegateInArgument iterationDelegateArgument = (DelegateInArgument)
Activator
.CreateInstance(variableType);
98
object activityFunc =
Activator
.CreateInstance(activityFuncType);
105
DelegateInArgument newActivityActionArgument = (DelegateInArgument)
Activator
.CreateInstance(argumentType);
114
DelegateOutArgument newActivityActionResult = (DelegateOutArgument)
Activator
.CreateInstance(resultType);
System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (1)
410
object mutableKVPair =
Activator
.CreateInstance(caseType, new object[] { newKey, null });
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (3)
334
object catchObject =
Activator
.CreateInstance(catchType);
337
object activityAction =
Activator
.CreateInstance(activityActionType);
340
object exceptionArgument =
Activator
.CreateInstance(argumentType);
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (1)
442
object mutableKVPair =
Activator
.CreateInstance(dictionaryEntryType, new object[] { wrapper.Name, argument });
System\ServiceModel\Activities\Presentation\BindingEditor.xaml.cs (1)
84
Binding instance = (Binding)
Activator
.CreateInstance(entry.Value.BindingType);
System\ServiceModel\Activities\Presentation\CorrelationInitializerDesigner.xaml.cs (1)
230
var newInitializer = (CorrelationInitializer)
Activator
.CreateInstance(type);
System.Activities.Presentation (31)
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateInfo.cs (1)
37
ActivityDelegate delegateObject =
Activator
.CreateInstance(this.DelegateType) as ActivityDelegate;
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (2)
108
delegateArgument =
Activator
.CreateInstance(typeof(DelegateInArgument<>).MakeGenericType(argument.Type)) as DelegateArgument;
112
delegateArgument =
Activator
.CreateInstance(typeof(DelegateOutArgument<>).MakeGenericType(argument.Type)) as DelegateArgument;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (1)
264
item = (ContextItem)
Activator
.CreateInstance(itemType);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (3)
498
NewItemFactory factory = (NewItemFactory)
Activator
.CreateInstance(attribute.FactoryType);
573
return
Activator
.CreateInstance(type);
837
return (TypeConverter)
Activator
.CreateInstance(typeConverterType);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\ExtensibilityMetadataHelper.cs (1)
44
propertyValueEditor = (PropertyValueEditor)
Activator
.CreateInstance(editorType);
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (3)
201
return (TypeConverter)
Activator
.CreateInstance(Type.GetType(attribute.ConverterTypeName));
280
return
Activator
.CreateInstance(Type.GetType(attribute.EditorTypeName));
391
result = (PropertyValueEditor)
Activator
.CreateInstance(editorType);
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
414
droppedObject =
Activator
.CreateInstance(type);
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (3)
126
return (ActivityWithResult)
Activator
.CreateInstance(concreteExpType, converterValue);
184
ExpressionMorphHelper morphHelper =
Activator
.CreateInstance(morphHelperAttribute.ExpressionMorphHelperType) as ExpressionMorphHelper;
219
ExpressionMorphHelper morphHelper =
Activator
.CreateInstance(morphHelperAttribute.ExpressionMorphHelperType) as ExpressionMorphHelper;
System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (1)
34
Feature feature = (Feature)
Activator
.CreateInstance(featureAttribute.Type);
System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (2)
47
ModelItem newModelItem = ModelFactory.CreateItem(modelItem.GetEditingContext(),
Activator
.CreateInstance(newModelItemType));
83
Activity activity = (Activity)
Activator
.CreateInstance(activityType);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (1)
761
object 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)
450
SearchableStringConverter converter =
Activator
.CreateInstance(converterType) as SearchableStringConverter;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (1)
137
Object instance =
Activator
.CreateInstance(itemType, arguments);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
1328
return
Activator
.CreateInstance(this.PropertyType, new object[] { component });
System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (1)
55
converter = (TypeConverter)
Activator
.CreateInstance(type);
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (1)
228
Activator
.CreateInstance(toolboxItemAttributes[0].ToolboxItemType) as ToolboxItem;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
553
EditingControlBehavior behavior =
Activator
.CreateInstance(editorBehaviorType, this.dataGrid) as EditingControlBehavior;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1138
BitmapEncoder encoder = (BitmapEncoder)
Activator
.CreateInstance(encoderType);
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
688
editorInstance =
Activator
.CreateInstance(expressionEditorType) as ExpressionActivityEditor;
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
1031
newExpression = (ActivityWithResult)
Activator
.CreateInstance(targetExpressionType, expressionText);
2170
return
Activator
.CreateInstance(expressionType).ToString();
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
174
viewElement = (WorkflowViewElement)
Activator
.CreateInstance(designerType);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.Helpers.cs (1)
53
viewManager = (ViewManager)
Activator
.CreateInstance(viewManagerAttribute.ViewManagerType);
System.AddIn (4)
System\Addin\Hosting\AddInActivator.cs (1)
345
ObjectHandle objHandle =
Activator
.CreateInstance(domain, t.Assembly.FullName, t.FullName,
System\Addin\Hosting\AddInServer.cs (1)
67
ObjectHandle workerHandle =
Activator
.CreateInstance(domain, sysCore.FullName, typeof(AddInServerWorker).FullName);
System\Addin\Hosting\AddInStore.cs (1)
1154
ObjectHandle inspectionWorkerHandle =
Activator
.CreateInstance(domain, typeof(InspectionWorker).Assembly.FullName, typeof(InspectionWorker).FullName);
System\Addin\Hosting\RemotingHelper.cs (1)
67
return (AddInServer)
Activator
.GetObject(Type.GetType(@"System.AddIn.Hosting.AddInServer")
System.Configuration (2)
System\Configuration\TypeUtil.cs (2)
114
object result =
Activator
.CreateInstance(type, true); // create non-public types
137
ilGen.Emit(OpCodes.Call, typeof(
Activator
).GetMethod("CreateInstance", new Type[] { typeof(Type), typeof(bool) })); // stack = { retVal }
System.Core (3)
System\Linq\SequenceQuery.cs (3)
25
return (IQueryable)
Activator
.CreateInstance(seqType, BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic, null, new object[] {sequence}, null);
34
return (IQueryable)
Activator
.CreateInstance(seqType, BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic, null, new object[] {expression}, null);
155
return (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)
410
object mutableKVPair =
Activator
.CreateInstance(caseType, new object[] { newKey, null });
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateInfo.cs (1)
37
ActivityDelegate delegateObject =
Activator
.CreateInstance(this.DelegateType) as ActivityDelegate;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (2)
108
delegateArgument =
Activator
.CreateInstance(typeof(DelegateInArgument<>).MakeGenericType(argument.Type)) as DelegateArgument;
112
delegateArgument =
Activator
.CreateInstance(typeof(DelegateOutArgument<>).MakeGenericType(argument.Type)) as DelegateArgument;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\EditingContext.cs (1)
264
item = (ContextItem)
Activator
.CreateInstance(itemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (3)
498
NewItemFactory factory = (NewItemFactory)
Activator
.CreateInstance(attribute.FactoryType);
573
return
Activator
.CreateInstance(type);
837
return (TypeConverter)
Activator
.CreateInstance(typeConverterType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\ExtensibilityMetadataHelper.cs (1)
44
propertyValueEditor = (PropertyValueEditor)
Activator
.CreateInstance(editorType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (3)
201
return (TypeConverter)
Activator
.CreateInstance(Type.GetType(attribute.ConverterTypeName));
280
return
Activator
.CreateInstance(Type.GetType(attribute.EditorTypeName));
391
result = (PropertyValueEditor)
Activator
.CreateInstance(editorType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
414
droppedObject =
Activator
.CreateInstance(type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (3)
126
return (ActivityWithResult)
Activator
.CreateInstance(concreteExpType, converterValue);
184
ExpressionMorphHelper morphHelper =
Activator
.CreateInstance(morphHelperAttribute.ExpressionMorphHelperType) as ExpressionMorphHelper;
219
ExpressionMorphHelper morphHelper =
Activator
.CreateInstance(morphHelperAttribute.ExpressionMorphHelperType) as ExpressionMorphHelper;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FeatureManager.cs (1)
34
Feature feature = (Feature)
Activator
.CreateInstance(featureAttribute.Type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (2)
47
ModelItem newModelItem = ModelFactory.CreateItem(modelItem.GetEditingContext(),
Activator
.CreateInstance(newModelItemType));
83
Activity activity = (Activity)
Activator
.CreateInstance(activityType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (1)
761
object 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)
450
SearchableStringConverter converter =
Activator
.CreateInstance(converterType) as SearchableStringConverter;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (1)
137
Object instance =
Activator
.CreateInstance(itemType, arguments);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
1328
return
Activator
.CreateInstance(this.PropertyType, new object[] { component });
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\XamlUtilities.cs (1)
55
converter = (TypeConverter)
Activator
.CreateInstance(type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (1)
228
Activator
.CreateInstance(toolboxItemAttributes[0].ToolboxItemType) as ToolboxItem;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
553
EditingControlBehavior behavior =
Activator
.CreateInstance(editorBehaviorType, this.dataGrid) as EditingControlBehavior;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1138
BitmapEncoder encoder = (BitmapEncoder)
Activator
.CreateInstance(encoderType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
688
editorInstance =
Activator
.CreateInstance(expressionEditorType) as ExpressionActivityEditor;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
1031
newExpression = (ActivityWithResult)
Activator
.CreateInstance(targetExpressionType, expressionText);
2170
return
Activator
.CreateInstance(expressionType).ToString();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
174
viewElement = (WorkflowViewElement)
Activator
.CreateInstance(designerType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.Helpers.cs (1)
53
viewManager = (ViewManager)
Activator
.CreateInstance(viewManagerAttribute.ViewManagerType);
fx\src\data\System\Data\Common\DataAdapter.cs (1)
286
DataAdapter 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)
138
return (
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)
286
object Obj = System.
Activator
.CreateInstance(DataType, true);
346
retValue = System.
Activator
.CreateInstance (type, true);
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (2)
141
object Obj = System.
Activator
.CreateInstance (DataType, true);
169
object Obj = System.
Activator
.CreateInstance (type, true);
fx\src\data\System\Data\DataColumn.cs (1)
1479
DataColumn clone = (DataColumn)
Activator
.CreateInstance(this.GetType());
fx\src\data\System\Data\DataSet.cs (1)
1105
DataSet ds = (DataSet)
Activator
.CreateInstance(this.GetType(), true);
fx\src\data\System\Data\DataTable.cs (1)
2141
return (DataTable)
Activator
.CreateInstance(this.GetType(), true);
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
645
return
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)
41
object 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)
153
result =
Activator
.CreateInstance(t);
fx\src\data\System\Data\Sql\sqlser.cs (2)
46
return SizeInBytes(
Activator
.CreateInstance(t));
185
object instance =
Activator
.CreateInstance(m_type);
System.Data.Entity (6)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (1)
187
CoordinatorFactory result = (CoordinatorFactory)
Activator
.CreateInstance(typeof(CoordinatorFactory<>).MakeGenericType(_elementType), new object[] {
System\Data\Common\Internal\Materialization\RecordStateScratchpad.cs (1)
76
RecordStateFactory result = (RecordStateFactory)
Activator
.CreateInstance(typeof(RecordStateFactory), new object[] {
System\Data\Common\Internal\Materialization\ShaperFactory.cs (1)
27
ShaperFactoryCreator creator = (ShaperFactoryCreator)
Activator
.CreateInstance(typeof(TypedShaperFactoryCreator<>).MakeGenericType(elementType));
System\Data\Common\Utils\Boolean\IdentifierService.cs (1)
40
return (IdentifierService<T_Identifier>)
Activator
.CreateInstance(
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
385
EntityViewContainer viewContainer = (
Activator
.CreateInstance(viewContainerType) as EntityViewContainer);
System\Data\Objects\ObjectView.cs (1)
179
TElement newItem = (TElement)
Activator
.CreateInstance(typeof(TElement));
System.Data.Entity.Design (4)
System\Data\Entity\Design\EntityCodeGenerator.cs (4)
505
return
Activator
.CreateInstance(_csharpCodeGeneratorTypeV2);
516
return
Activator
.CreateInstance(_csharpCodeGeneratorTypeV3);
527
return
Activator
.CreateInstance(_vbCodeGeneratorTypeV2);
538
return
Activator
.CreateInstance(_vbCodeGeneratorTypeV3);
System.Data.Linq (26)
ChangeTracker.cs (1)
526
object copy =
Activator
.CreateInstance(this.Type.Type);
DataBindingList.cs (1)
18
return (IBindingList)
Activator
.CreateInstance(bindingType,
DataContext.cs (4)
166
return
Activator
.CreateInstance(this.GetType(), new object[] { this.Connection, this.Mapping.MappingSource });
187
this.provider = (IProvider)
Activator
.CreateInstance(providerType);
397
tb = (ITable)
Activator
.CreateInstance(tbType, BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic, null, new object[] { this, metaTable }, null);
1156
return (IQueryable)
Activator
.CreateInstance(dqType, new object[] { this.context, expression });
DataQuery.cs (1)
42
return (IQueryable)
Activator
.CreateInstance(dqType, new object[] { this.context, expression });
DataServices.cs (1)
292
factory = (IDeferredSourceFactory)
Activator
.CreateInstance(
IdentityManager.cs (3)
64
this.currentCache = (IdentityCache)
Activator
.CreateInstance(
80
KeyManager km = (KeyManager)
Activator
.CreateInstance(
88
Activator
.CreateInstance(
Mapping\Accessors.cs (2)
57
return (MetaAccessor)
Activator
.CreateInstance(
125
return (MetaAccessor)
Activator
.CreateInstance(
Mapping\AttributedMetaModel.cs (1)
1304
return (MetaAccessor)
Activator
.CreateInstance(accessorType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, args, null);
Mapping\MappedMetaModel.cs (1)
1209
return (MetaAccessor)
Activator
.CreateInstance(accessorType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, args, null);
parent\parent\misc\SecurityUtils.cs (1)
127
return
Activator
.CreateInstance(type, flags, null, args, null);
SqlClient\Query\SqlMethodCallConverter.cs (1)
1003
sql.ValueFromObject(
Activator
.CreateInstance(clrType), mc.SourceExpression));
SqlClient\Reader\ObjectReaderCompiler.cs (3)
209
factory = (IObjectReaderFactory)
Activator
.CreateInstance(
260
return (IObjectReaderSession)
Activator
.CreateInstance(sessionType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null,
2178
this.globals.Add(
Activator
.CreateInstance(typeof(StrongBox<>).MakeGenericType(type), new object[] { value }));
SqlClient\SqlProvider.cs (6)
545
object engine =
Activator
.CreateInstance(engineType, new object[] { builder.ToString() });
1017
Activator
.CreateInstance(
1052
IEnumerable sequence = (IEnumerable)
Activator
.CreateInstance(
1104
IEnumerable sequence = (IEnumerable)
Activator
.CreateInstance(
1115
sequence = (IEnumerable)
Activator
.CreateInstance(
1227
return (IEnumerable)
Activator
.CreateInstance(enumerableType, BindingFlags.Instance | BindingFlags.NonPublic, null, new object[] { e }, null);
System.Data.Services (1)
System\Data\Services\Providers\BasicExpandProvider.cs (1)
188
return (IQueryable)
Activator
.CreateInstance(resultQueryable, args);
System.Data.Services.Client (12)
System\Data\Services\Client\AtomMaterializer.cs (2)
1157
result =
Activator
.CreateInstance(collectionType);
1673
entry.ResolvedObject =
Activator
.CreateInstance(type);
System\Data\Services\Client\ClientConvert.cs (1)
192
return
Activator
.CreateInstance(knownTypes[(int)StorageType.Binary], Convert.FromBase64String(propertyValue));
System\Data\Services\Client\ClientType.cs (1)
639
return
Activator
.CreateInstance(this.ElementType);
System\Data\Services\Client\DataServiceContext.cs (4)
3871
collection =
Activator
.CreateInstance(
3878
collection =
Activator
.CreateInstance(typeof(List<>).MakeGenericType(nestedType));
3885
IList results = (IList)
Activator
.CreateInstance(typeof(List<>).MakeGenericType(elementType));
3972
IList results = (IList)
Activator
.CreateInstance(typeof(List<>).MakeGenericType(elementType));
System\Data\Services\Client\DataServiceRequest.cs (1)
108
return (DataServiceRequest)
Activator
.CreateInstance(genericType, new object[] { requestUri });
System\Data\Services\Client\MaterializeFromAtom.cs (1)
307
IList list = (IList)
Activator
.CreateInstance(implementationType);
System\Data\Services\Client\QueryResponse.cs (1)
139
return (QueryOperationResponse)
Activator
.CreateInstance(
System\Data\Services\Client\Util.cs (1)
514
return
Activator
.CreateInstance(type, arguments);
System.Data.SqlXml (2)
System\Xml\Xsl\XsltOld\Compiler.cs (1)
731
lang == 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)
339
scriptExtensions.Add(namespaceUri,
Activator
.CreateInstance((Type)entry.Value,
System.Drawing (1)
commonui\System\Drawing\Printing\PrintDocument.cs (1)
144
printController = (PrintController)
Activator
.CreateInstance(type,
System.IdentityModel (2)
System\IdentityModel\Configuration\SecurityTokenServiceConfiguration.cs (1)
191
return
Activator
.CreateInstance(stsType, this) as STS;
System\IdentityModel\Configuration\TypeResolveHelper.cs (1)
50
T createdObject = (T)
Activator
.CreateInstance(
System.Management (8)
Instrumentation\EventSource.cs (2)
569
Object converter =
Activator
.CreateInstance(converterType);
795
Object converter =
Activator
.CreateInstance((Type)instrumentedAssembly.mapTypeToConverter[managedType]);
Instrumentation\Instrumentation.cs (2)
550
Object converter =
Activator
.CreateInstance(converterType);
608
Object converter =
Activator
.CreateInstance(converterType);
InteropClasses\WMIInterop.cs (2)
1996
return
Activator
.CreateInstance(type);
2067
reqToProcess.createdObject =
Activator
.CreateInstance(reqToProcess.typeToCreate);
WmiGenerator.cs (2)
4975
cp = (System.CodeDom.Compiler.CodeDomProvider)
Activator
.CreateInstance(codeProvType);
4997
cp = (System.CodeDom.Compiler.CodeDomProvider)
Activator
.CreateInstance(codeProvType);
System.Runtime.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)
700
IXmlSerializable ixmlSerializable = (IXmlSerializable)
Activator
.CreateInstance(clrType);
System.ServiceModel (34)
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (1)
164
return
Activator
.CreateInstance(factoryType) as HttpMessageHandlerFactory;
System\ServiceModel\Configuration\ClientCredentialsElement.cs (1)
126
behavior = (ClientCredentials)
Activator
.CreateInstance(credentialsType);
System\ServiceModel\Configuration\CustomBindingCollectionElement.cs (2)
51
return System.
Activator
.CreateInstance<CustomBinding>();
63
BindingElementExtensionElement bindingElementExtension =
Activator
.CreateInstance(Type.GetType(element.Type, true)) as BindingElementExtensionElement;
System\ServiceModel\Configuration\IssuedTokenServiceElement.cs (2)
167
issuedToken.CustomCertificateValidator = (X509CertificateValidator)
Activator
.CreateInstance(type);
177
issuedToken.SamlSerializer = (SamlSerializer)
Activator
.CreateInstance(type);
System\ServiceModel\Configuration\PeerCustomResolverElement.cs (1)
82
settings.Resolver =
Activator
.CreateInstance(myResolverType) as PeerResolver;
System\ServiceModel\Configuration\SecureConversationServiceElement.cs (1)
63
secureConversation.SecurityStateEncoder = (SecurityStateEncoder)
Activator
.CreateInstance(type);
System\ServiceModel\Configuration\ServiceAuthenticationElement.cs (1)
63
behavior.ServiceAuthenticationManager = (ServiceAuthenticationManager)
Activator
.CreateInstance(type);
System\ServiceModel\Configuration\ServiceAuthorizationElement.cs (2)
128
behavior.ServiceAuthorizationManager = (ServiceAuthorizationManager)
Activator
.CreateInstance(type);
142
policies.Add((IAuthorizationPolicy)
Activator
.CreateInstance(type));
System\ServiceModel\Configuration\ServiceCredentialsElement.cs (1)
129
behavior = (ServiceCredentials)
Activator
.CreateInstance(credentialsType);
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (1)
346
retval = (TServiceModelExtensionElement)
Activator
.CreateInstance(elementType);
System\ServiceModel\Configuration\StandardBindingCollectionElement.cs (1)
52
return System.
Activator
.CreateInstance<TStandardBinding>();
System\ServiceModel\Configuration\StandardEndpointCollectionElement.cs (1)
53
return System.
Activator
.CreateInstance<TEndpointConfiguration>();
System\ServiceModel\Configuration\StandardRuntimeFlagEnumValidatorAttribute.cs (1)
100
return (ConfigurationValidatorBase)
Activator
.CreateInstance(validatorType, null);
System\ServiceModel\Configuration\UserNameServiceElement.cs (1)
141
userName.CustomUserNamePasswordValidator = (UserNamePasswordValidator)
Activator
.CreateInstance(validatorType);
System\ServiceModel\Configuration\X509ClientCertificateAuthenticationElement.cs (1)
114
cert.CustomCertificateValidator = (X509CertificateValidator)
Activator
.CreateInstance(validatorType);
System\ServiceModel\Configuration\X509PeerCertificateAuthenticationElement.cs (1)
96
cert.CustomCertificateValidator = (X509CertificateValidator)
Activator
.CreateInstance(validatorType);
System\ServiceModel\Configuration\X509ServiceCertificateAuthenticationElement.cs (1)
96
cert.CustomCertificateValidator = (X509CertificateValidator)
Activator
.CreateInstance(validatorType);
System\ServiceModel\Description\MetadataSet.cs (1)
589
o.@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)
992
Attribute defaultAttribute = (Attribute)
Activator
.CreateInstance(attributeType);
System\ServiceModel\Dispatcher\FaultFormatter.cs (2)
161
return (FaultException)
Activator
.CreateInstance(knownFaultType,
196
return (MessageFault)
Activator
.CreateInstance(operationFaultType, serializer, faultException);
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
161
object typeMessageInstance =
Activator
.CreateInstance(
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (1)
339
return (parameterType.IsValueType && parameterType != typeof(void)) ?
Activator
.CreateInstance(parameterType) : null;
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
349
object bodyObject =
Activator
.CreateInstance(messageDescription.Body.Parts[0].Type);
System\ServiceModel\MessageHeaderT.cs (1)
125
result = (TypedHeaderManager)
Activator
.CreateInstance(GenericAdapterType.MakeGenericType(t));
System\ServiceModel\MsmqException.cs (1)
149
return
Activator
.CreateInstance(this.outerExceptionType, new object[] { this.Message, this }) as Exception;
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
201
return (InlineCategoriesDocument)
Activator
.CreateInstance(this.inlineDocumentType);
213
return (ReferencedCategoriesDocument)
Activator
.CreateInstance(this.referencedDocumentType);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (1)
223
return (ServiceDocument)
Activator
.CreateInstance(this.documentType);
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (1)
411
return (SyndicationFeed)
Activator
.CreateInstance(feedType);
System\ServiceModel\Syndication\SyndicationItemFormatter.cs (1)
82
return (SyndicationItem)
Activator
.CreateInstance(itemType);
System.ServiceModel.Activation (3)
System\ServiceModel\Activation\HostedTransportConfigurationManager.cs (1)
218
configuration =
Activator
.CreateInstance(type) as HostedTransportConfiguration;
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (1)
112
Activity activity = (Activity)
Activator
.CreateInstance(activityType);
System\ServiceModel\ServiceHostingEnvironment.cs (1)
1988
return
Activator
.CreateInstance(type,
System.ServiceModel.Internals (1)
System\Runtime\TypeHelper.cs (1)
574
return
Activator
.CreateInstance(type);
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\Configuration\RoutingSection.cs (1)
617
return (MessageFilter)
Activator
.CreateInstance(customFilterType, filterData);
System.ServiceModel.Web (3)
System\ServiceModel\Configuration\WebHttpBindingElement.cs (1)
274
contentTypeMapper = (WebContentTypeMapper)
Activator
.CreateInstance(type);
System\ServiceModel\Configuration\WebMessageEncodingElement.cs (1)
99
binding.ContentTypeMapper = (WebContentTypeMapper)
Activator
.CreateInstance(CTMType);
System\ServiceModel\Dispatcher\QueryStringConverter.cs (1)
277
converter = (TypeConverter)
Activator
.CreateInstance(converterType);
System.Web (47)
Compilation\BrowserCapabilitiesCompiler.cs (2)
83
(BrowserCapabilitiesFactoryBase)
Activator
.CreateInstance(t);
395
_baseInstance = (BrowserCapabilitiesFactoryBase)
Activator
.CreateInstance(baseType);
Compilation\CompilationUtil.cs (3)
457
return (CodeDomProvider)
Activator
.CreateInstance(codeDomProviderType);
519
CodeDomProvider defaultProvider = (CodeDomProvider)
Activator
.CreateInstance(codeDomProviderType);
540
CodeDomProvider provider = (CodeDomProvider)
Activator
.CreateInstance(codeDomProviderType);
Configuration\HttpCapabilitiesBase.cs (1)
179
writer = (HtmlTextWriter)
Activator
.CreateInstance(writerType, arr);
Configuration\HttpCapabilitiesEvaluator.cs (1)
88
_browserCapabilitiesProvider = (HttpCapabilitiesProvider)
Activator
.CreateInstance(t);
Configuration\HttpConfigurationSystem.cs (2)
87
s_configSystem = (IConfigSystem)
Activator
.CreateInstance(typeConfigSystem, true);
114
s_configSettingsFactory = (IInternalConfigSettingsFactory)
Activator
.CreateInstance(typeFactory, true);
Configuration\IISVersionHelper.cs (1)
55
return (IIISVersionManager)
Activator
.CreateInstance(type);
Configuration\RemoteWebConfigurationHost.cs (1)
492
return (IRemoteWebConfigurationHostServer)
Activator
.CreateInstance(type);
Configuration\RemoteWebConfigurationHostServer.cs (1)
227
ProtectedConfigurationProvider provider = (ProtectedConfigurationProvider)
Activator
.CreateInstance(t);
Configuration\WebConfigurationHost.cs (2)
81
Host = (IInternalConfigHost)
Activator
.CreateInstance(type, true);
834
s_configurationFactory = (IInternalConfigConfigurationFactory)
Activator
.CreateInstance(type, true);
Hosting\ApplicationManager.cs (2)
1298
h =
Activator
.CreateInstance(appDomain, module, typeName);
1640
hostSecurityPolicyResolver =
Activator
.CreateInstance(
Hosting\HostingEnvironment.cs (2)
744
return new ObjectHandle(
Activator
.CreateInstance(type));
759
obj = (IRegisteredObject)
Activator
.CreateInstance(type);
Hosting\PreloadHost.cs (1)
39
IProcessHostPreloadClient preloadClient = (IProcessHostPreloadClient)
Activator
.CreateInstance(preloadObjType);
Hosting\ProcessHost.cs (1)
479
protocolHandler = (ProcessProtocolHandler)
Activator
.CreateInstance(protocolHandlerType);
HttpRuntime.cs (4)
3414
return
Activator
.CreateInstance(
3423
return
Activator
.CreateInstance(type);
3491
return
Activator
.CreateInstance(type);
3493
return
Activator
.CreateInstance(type, args);
httpserverutility.cs (3)
90
obj =
Activator
.CreateInstance(type);
112
Object obj =
Activator
.CreateInstance(type);
148
obj =
Activator
.CreateInstance(type);
httpstaticobjectscollection.cs (1)
277
_instance =
Activator
.CreateInstance(_type);
ModelBinding\ArrayModelBinderProvider.cs (1)
12
return (IModelBinder)
Activator
.CreateInstance(typeof(ArrayModelBinder<>).MakeGenericType(elementType));
ModelBinding\CollectionModelBinderUtil.cs (1)
49
return (typeArguments != null) ? (IModelBinder)
Activator
.CreateInstance(openBinderType.MakeGenericType(typeArguments)) : null;
ModelBinding\GenericModelBinderProvider.cs (1)
42
return (IModelBinder)
Activator
.CreateInstance(closedModelBinderType);
ModelBinding\ModelBinderUtil.cs (1)
35
return (typeArguments != null) ? (IModelBinder)
Activator
.CreateInstance(openBinderType.MakeGenericType(typeArguments)) : null;
parent\parent\parent\Misc\SecurityUtils.cs (1)
127
return
Activator
.CreateInstance(type, flags, null, args, null);
Profile\HttpProfileBase.cs (2)
96
grp = (ProfileGroupBase)
Activator
.CreateInstance(t);
365
ProfileBase hbc = (ProfileBase)
Activator
.CreateInstance(t);
Security\AuthStoreRoleProvider.cs (1)
607
_ObjAzAuthorizationStoreClass =
Activator
.CreateInstance(typeAzAuthorizationStoreClass);
Security\Membership.cs (1)
468
MembershipProvider provider = (MembershipProvider)
Activator
.CreateInstance(t);
Security\Roles.cs (1)
539
RoleProvider provider = (RoleProvider)
Activator
.CreateInstance(t);
UI\StateManagedCollection.cs (2)
188
o =
Activator
.CreateInstance(type);
266
o =
Activator
.CreateInstance(type);
UI\TemplateParser.cs (1)
478
_controlBuilderInterceptor = (ControlBuilderInterceptor)
Activator
.CreateInstance(CompConfig.ControlBuilderInterceptorTypeInternal);
UI\WebControls\ObjectDataSourceView.cs (2)
685
object dataObject =
Activator
.CreateInstance(dataObjectType);
1646
objectEventArgs.ObjectInstance =
Activator
.CreateInstance(method.Type);
UI\WebParts\WebPartManager.cs (2)
1801
connectionPoint = (ConsumerConnectionPoint)
Activator
.CreateInstance(connectionPointType, args);
1831
connectionPoint = (ProviderConnectionPoint)
Activator
.CreateInstance(connectionPointType, args);
Util\FactoryGenerator.cs (1)
183
return (IWebObjectFactory)
Activator
.CreateInstance(factoryType);
Util\SmtpMail.cs (1)
71
return
Activator
.CreateInstance(LateBoundType);
System.Web.ApplicationServices (2)
Hosting\CustomLoaderHelper.cs (1)
103
object customLoader =
Activator
.CreateInstance(customLoaderAttribute.CustomLoaderType);
Util\SystemWebProxy.cs (1)
49
return
Activator
.CreateInstance(type);
System.Web.DynamicData (1)
DynamicData\MetaModel.cs (1)
151
RegisterContext(() =>
Activator
.CreateInstance(contextType), configuration);
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceColumn.cs (1)
350
EntityDataSourceReferenceValueColumn result = (EntityDataSourceReferenceValueColumn)
Activator
.CreateInstance(columnType, ocWorkspace, navigationProperty);
System\Data\WebControls\EntityDataSourceReferenceGroup.cs (1)
50
return (EntityDataSourceReferenceGroup)
Activator
.CreateInstance(groupType, new object[] { end });
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceStatementEditorForm.cs (1)
161
this._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)
464
ClientFormsAuthenticationCredentials creds = ((IClientFormsAuthenticationCredentialsProvider)
Activator
.CreateInstance(_GetCredentialsType)).GetCredentials();
ClientServices\Providers\SqlHelper.cs (3)
214
using (IDisposable engine = (IDisposable)
Activator
.CreateInstance(GetSqlCeType("SqlCeEngine"), new object[] { connectionString })) {
279
DbConnection conn = (DbConnection)
Activator
.CreateInstance(_SqlCeConnectionType, new object[] {connectionString});
291
cmd.Parameters.Add((DbParameter)
Activator
.CreateInstance(_SqlCeParamType, new object[]{paramName, paramValue}));
Configuration\ConvertersCollection.cs (1)
90
list.Add((JavaScriptConverter)
Activator
.CreateInstance(t));
Script\Serialization\ObjectConverter.cs (6)
171
o =
Activator
.CreateInstance(targetType);
200
dict = (IDictionary)
Activator
.CreateInstance(type);
205
dict = (IDictionary)
Activator
.CreateInstance(t);
471
newList = (IList)
Activator
.CreateInstance(type);
484
newList = (IList)
Activator
.CreateInstance(t);
499
IList newList = (IList)
Activator
.CreateInstance(type);
Script\Services\RestHandler.cs (1)
138
if (!methodData.IsStatic) target =
Activator
.CreateInstance(methodData.Owner.TypeData.Type);
System.Web.Mobile (7)
UI\MobileControls\Design\PropertyOverridesDialog.cs (1)
702
Object clone =
Activator
.CreateInstance(
UI\MobileControls\Design\StylesEditorDialog.cs (2)
435
Style newStyle = (Style)
Activator
.CreateInstance(style.GetType());
761
Style newStyle = (Style)
Activator
.CreateInstance(_currentNewStyleType);
UI\MobileControls\Design\Util\DesignerUtility.cs (1)
86
Object serviceInstance = System.
Activator
.CreateInstance(
UI\MobileControls\DesignerDeviceConfig.cs (1)
51
adapter =
Activator
.CreateInstance(adapterType) as IControlAdapter;
UI\MobileControls\FactoryGenerator.cs (1)
191
object factory =
Activator
.CreateInstance(factoryType);
UI\MobileControls\MobilePage.cs (1)
300
pageAdapter.CookielessDataDictionary =
Activator
.CreateInstance(t) as IDictionary;
System.Web.Services (20)
System\Web\Services\Configuration\WebServicesSection.cs (1)
361
serverProtocolFactoryList.Add((ServerProtocolFactory)
Activator
.CreateInstance(this.SoapServerProtocolFactory));
System\Web\Services\Description\HttpProtocolImporter.cs (1)
46
MimeImporter importer = (MimeImporter)
Activator
.CreateInstance(importerTypes[i]);
System\Web\Services\Description\HttpProtocolReflector.cs (1)
26
MimeReflector reflector = (MimeReflector)
Activator
.CreateInstance(reflectorTypes[i]);
System\Web\Services\Description\ServiceDescriptionImporter.cs (1)
129
importers[i] = (ProtocolImporter)
Activator
.CreateInstance(importerTypes[i]);
System\Web\Services\Description\ServiceDescriptionReflector.cs (2)
119
ProtocolReflector reflector = (ProtocolReflector)
Activator
.CreateInstance(reflectorTypes[i]);
127
ProtocolReflector reflector = (ProtocolReflector)
Activator
.CreateInstance(reflectorTypes[i]);
System\Web\Services\Description\SoapProtocolImporter.cs (2)
414
SoapTransportImporter transportImporter = (SoapTransportImporter)
Activator
.CreateInstance(type);
519
SoapExtensionImporter extension = (SoapExtensionImporter)
Activator
.CreateInstance(extensionTypes[i].Type);
System\Web\Services\Description\SoapProtocolReflector.cs (2)
246
SoapExtensionReflector extension = (SoapExtensionReflector)
Activator
.CreateInstance(extensionTypes[i].Type);
261
SoapExtensionReflector extension = (SoapExtensionReflector)
Activator
.CreateInstance(extensionTypes[i].Type);
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (2)
135
discoRef = (DiscoveryReference)
Activator
.CreateInstance(type);
348
DiscoveryReference reference = (DiscoveryReference)
Activator
.CreateInstance(Type.GetType(typeName));
System\Web\Services\Protocols\MimeFormatter.cs (3)
49
return ((MimeFormatter)
Activator
.CreateInstance(type)).GetInitializer(methodInfo);
58
return ((MimeFormatter)
Activator
.CreateInstance(type)).GetInitializers(methodInfos);
67
MimeFormatter formatter = (MimeFormatter)
Activator
.CreateInstance(type);
System\Web\Services\Protocols\PatternMatcher.cs (1)
56
object target =
Activator
.CreateInstance(type);
System\Web\Services\Protocols\ServerProtocol.cs (1)
54
target =
Activator
.CreateInstance(ServerType.Type);
System\Web\Services\Protocols\SoapReflector.cs (3)
41
SoapExtension extension = (SoapExtension)
Activator
.CreateInstance(type);
47
SoapExtension extension = (SoapExtension)
Activator
.CreateInstance(type);
52
SoapExtension extension = (SoapExtension)
Activator
.CreateInstance(type);
System.Windows.Forms (34)
misc\SecurityUtils.cs (1)
127
return
Activator
.CreateInstance(type, flags, null, args, null);
winforms\Managed\System\Resources\ResXFileRef.cs (1)
325
created =
Activator
.CreateInstance(toCreate, BindingFlags.Instance | BindingFlags.Public | BindingFlags.CreateInstance, null, new Object[] {memStream}, null);
winforms\Managed\System\WinForms\ColumnHeader.cs (1)
442
columnHeader = (ColumnHeader)
Activator
.CreateInstance(clonedType);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (2)
168
attr = (Attribute)
Activator
.CreateInstance(t, new Object[]{varParams[i]});
182
attr = (Attribute)
Activator
.CreateInstance(t);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (1)
275
handler = (Com2ExtendedBrowsingHandler)
Activator
.CreateInstance(extendedInterfaceHandlerTypes[i]);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (3)
717
converter = (Com2DataTypeToManagedDataTypeConverter)
Activator
.CreateInstance(t);
746
localConverter = (TypeConverter)
Activator
.CreateInstance(converterType);
794
localEditor =
Activator
.CreateInstance(type);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
1121
str =
Activator
.CreateInstance(t);
winforms\Managed\System\WinForms\DataGridViewBand.cs (1)
895
DataGridViewBand dataGridViewBand = (DataGridViewBand) System.
Activator
.CreateInstance(this.GetType());
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
199
dataGridViewCell = (DataGridViewButtonCell)System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (1)
214
dataGridViewColumn = (DataGridViewButtonColumn) System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
1173
DataGridViewCell dataGridViewCell = (DataGridViewCell) System.
Activator
.CreateInstance(this.GetType());
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
495
dataGridViewCell = (DataGridViewCheckBoxCell)System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
1105
DataGridViewColumn dataGridViewColumn = (DataGridViewColumn) System.
Activator
.CreateInstance(this.GetType());
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
125
dataGridViewCell = (DataGridViewColumnHeaderCell) System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
869
dataGridViewCell = (DataGridViewComboBoxCell)System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewComboBoxColumn.cs (1)
509
dataGridViewColumn = (DataGridViewComboBoxColumn)System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
299
dataGridViewCell = (DataGridViewHeaderCell)System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
290
dataGridViewCell = (DataGridViewImageCell)System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (1)
293
dataGridViewColumn = (DataGridViewImageColumn)System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
494
dataGridViewCell = (DataGridViewLinkCell)System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (1)
375
dataGridViewColumn = (DataGridViewLinkColumn)System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
1133
dataGridViewRow = (DataGridViewRow) System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
168
dataGridViewCell = (DataGridViewRowHeaderCell) System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
160
dataGridViewCell = (DataGridViewTextBoxCell)System.
Activator
.CreateInstance(thisType);
winforms\Managed\System\WinForms\ListViewItem.cs (1)
991
newItem = (ListViewItem)
Activator
.CreateInstance(clonedType);
winforms\Managed\System\WinForms\MenuItem.cs (4)
1158
MenuItem sep = (MenuItem)
Activator
.CreateInstance(this.GetType());
1185
MenuItem windowItem = (MenuItem)
Activator
.CreateInstance(this.GetType());
1206
MenuItem moreWindows = (MenuItem)
Activator
.CreateInstance(this.GetType());
1229
MenuItem newItem = (MenuItem)
Activator
.CreateInstance(this.GetType());
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
2050
tab = (PropertyTab)
Activator
.CreateInstance(tabType);
winforms\Managed\System\WinForms\TreeNode.cs (1)
1272
node = (TreeNode)
Activator
.CreateInstance(clonedType);
System.Workflow.Activities (22)
Common\CompilerHelpers.cs (2)
66
provider = (CodeDomProvider)
Activator
.CreateInstance(type);
73
provider = (CodeDomProvider)
Activator
.CreateInstance(type, new object[] { options });
Common\CompModHelpers.cs (2)
1052
CompositeActivity activity =
Activator
.CreateInstance(compositeActivity.GetType()) as CompositeActivity;
1199
Activity newCustomActivity =
Activator
.CreateInstance(declaringActivity.GetType()) as Activity;
Designers\WebServiceReceiveDesigner.cs (1)
120
typeFilterProvider =
Activator
.CreateInstance(typeFilterProviderType, new object[] { this.ServiceProvider }) as ITypeFilterProvider;
InvokeSchedule.cs (1)
230
rootActivity =
Activator
.CreateInstance(targetWorkflowType) as Activity;
InvokeWebService.cs (1)
113
object proxyInstance =
Activator
.CreateInstance(this.ProxyClass);
LocalService\CorrelationResolver.cs (1)
125
provider =
Activator
.CreateInstance(providerType) as ICorrelationProvider;
LocalService\ExternalDataExchangeService.cs (1)
201
service =
Activator
.CreateInstance(t);
LocalService\WorkflowMessageEventHandler.cs (1)
96
return (Delegate)
Activator
.CreateInstance(eventHandlerType, new object[] { this, mHandler.MethodHandle.GetFunctionPointer() });
Rules\Executor.cs (7)
809
converted =
Activator
.CreateInstance(toType);
854
converted =
Activator
.CreateInstance(toType, converted);
882
converted =
Activator
.CreateInstance(toType, converted);
897
converted =
Activator
.CreateInstance(toType, converted);
912
converted =
Activator
.CreateInstance(toType, converted);
927
converted =
Activator
.CreateInstance(toType, converted);
939
converted =
Activator
.CreateInstance(toType, converted);
Rules\Expressions.cs (2)
2087
object fromValueDefault =
Activator
.CreateInstance(fromType2);
3042
return new RuleLiteralResult(
Activator
.CreateInstance(expressionInfo.ExpressionType));
Rules\RuleValidation.cs (3)
442
return
Activator
.CreateInstance(resultType);
707
result =
Activator
.CreateInstance(resultType, result);
720
result =
Activator
.CreateInstance(resultType, result);
System.Workflow.ComponentModel (31)
AuthoringOM\ActivityExecutor.cs (1)
224
typeToExecutorMapping[executorType] =
Activator
.CreateInstance(executorType);
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (1)
122
Attribute attribute = (Attribute)
Activator
.CreateInstance(attributeType, constructorArguments.ToArray());
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (1)
150
validator =
Activator
.CreateInstance(dependencyProperty.ValidatorType) as Validator;
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
140
activity =
Activator
.CreateInstance(type) as Activity;
AuthoringOM\ComponentFactoryHelpers.cs (1)
209
component =
Activator
.CreateInstance(componentType);
AuthoringOM\DependencyProperty.cs (2)
251
defaultValue =
Activator
.CreateInstance(propertyType);
254
defaultValue =
Activator
.CreateInstance(propertyType);
AuthoringOM\Design\ActivityDesigner.cs (1)
2029
designer =
Activator
.CreateInstance(designerType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.CreateInstance, null, null, null) as IDesigner;
AuthoringOM\Design\CustomActivityDesigner.cs (1)
164
ToolboxItem item =
Activator
.CreateInstance(toolboxItemAttrib.ToolboxItemType, new object[] { rootActivity.GetType() }) as ToolboxItem;
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
558
defaultIndexerInstance =
Activator
.CreateInstance(indexType);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (3)
1011
ActivityToolboxItem item =
Activator
.CreateInstance(toolboxItemAttrib.ToolboxItemType, new object[] { activityType }) as ActivityToolboxItem;
1016
components = new IComponent[] {
Activator
.CreateInstance(activityType) as IComponent };
1066
Activity dummyActivity =
Activator
.CreateInstance(activityType) as Activity;
AuthoringOM\Design\SecondaryViewProvider.cs (1)
188
Activity activity =
Activator
.CreateInstance(activityType) as Activity;
AuthoringOM\Design\Themes.cs (2)
764
designerTheme =
Activator
.CreateInstance(themeAttrib.DesignerThemeType, new object[] { this }) as DesignerTheme;
966
return
Activator
.CreateInstance(type, new object[] { serializationManager.Context[typeof(WorkflowTheme)] });
AuthoringOM\Design\TypeConverters.cs (2)
68
return
Activator
.CreateInstance(this.conditionDecls[value] as Type);
113
conditionDeclList.Add(
Activator
.CreateInstance(declType));
AuthoringOM\Design\UITypeEditors.cs (1)
58
typeFilterProvider =
Activator
.CreateInstance(typeFilterProviderType, new object[] { serviceProvider }) as ITypeFilterProvider;
AuthoringOM\Design\WinOEToolBoxItem.cs (1)
129
ToolboxItem item =
Activator
.CreateInstance(toolboxItemAttrib.ToolboxItemType, new object[] { activityType }) as ToolboxItem;
AuthoringOM\Design\WorkflowInlining.cs (1)
360
return
Activator
.CreateInstance(this.targetWorkflowType) as Activity;
AuthoringOM\Serializer\ActivitySurrogate.cs (1)
344
this.activity = (Activity)
Activator
.CreateInstance(this.type);
AuthoringOM\Serializer\PropertySegmentSerializer.cs (1)
35
return
Activator
.CreateInstance(type, new object[] { serializationManager as IServiceProvider, serializationManager.Context.Current });
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (4)
1357
return
Activator
.CreateInstance(type);
2590
obj =
Activator
.CreateInstance(type, positionalArgs.ToArray());
2594
obj =
Activator
.CreateInstance(type);
2597
obj =
Activator
.CreateInstance(type);
Shared\CompilerHelpers.cs (2)
64
provider = (CodeDomProvider)
Activator
.CreateInstance(type);
71
provider = (CodeDomProvider)
Activator
.CreateInstance(type, new object[] { options });
Shared\CompModHelpers.cs (2)
1050
CompositeActivity activity =
Activator
.CreateInstance(compositeActivity.GetType()) as CompositeActivity;
1197
Activity newCustomActivity =
Activator
.CreateInstance(declaringActivity.GetType()) as Activity;
System.Workflow.Runtime (7)
DebugEngine\DebugController.cs (2)
487
this.controllerConduit =
Activator
.GetObject(Type.GetType(controllerConduitTypeName), url.AbsolutePath) as IWorkflowDebugger;
512
this.controllerConduit =
Activator
.GetObject(controllerConduitType, url.AbsolutePath) as IWorkflowDebugger;
DebugEngine\DebugControllerThread.cs (2)
105
expressionEvaluationFrame =
Activator
.CreateInstance(Type.GetType(evaluationFrameTypeName)) as IExpressionEvaluationFrame;
131
expressionEvaluationFrame =
Activator
.CreateInstance(eeFrameType) as IExpressionEvaluationFrame;
Hosting\DefaultWorkflowLoaderService.cs (1)
38
return
Activator
.CreateInstance(workflowType) as Activity;
System\Activities\Statements\Interop.cs (1)
489
System.Workflow.ComponentModel.Activity activity =
Activator
.CreateInstance(this.ActivityType) as System.Workflow.ComponentModel.Activity;
WorkflowRuntime.cs (1)
1534
service =
Activator
.CreateInstance(t);
System.WorkflowServices (7)
System\ServiceModel\Dispatcher\ServiceDurableInstance.cs (1)
533
this.instance =
Activator
.CreateInstance(this.newServiceType);
System\Workflow\Activities\Design\RichListBox.cs (3)
186
SelectedItemViewControl =
Activator
.CreateInstance(GetDetailViewType(selectedItem.GetType())) as ListItemViewControl;
201
activeItemViewControl =
Activator
.CreateInstance(GetItemViewType(selectedItem.GetType())) as ListItemViewControl;
229
listItemViewRenderers.Add(viewType.Name,
Activator
.CreateInstance(viewType) as ListItemViewControl);
System\Workflow\Activities\OperationInfoBase.cs (1)
81
OperationInfoBase clonedOperation = (OperationInfoBase)
Activator
.CreateInstance(this.GetType());
System\Workflow\Runtime\CompiledWorkflowDefinitionContext.cs (1)
63
rootActivity = (Activity)
Activator
.CreateInstance(workflowType);
System\Workflow\Runtime\Hosting\ChannelManagerHelpers.cs (1)
198
factory =
Activator
.CreateInstance(channelFactoryType, args) as ChannelFactory;
System.Xaml.Hosting (2)
System\Xaml\Hosting\XamlBuildProvider.cs (1)
161
xamlBuildProviderExtensionFactory = (IXamlBuildProviderExtensionFactory)
Activator
.CreateInstance(httpHandlerType,
System\Xaml\Hosting\XamlHttpHandlerFactory.cs (1)
50
return
Activator
.CreateInstance(type,
System.Xml (6)
System\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
65
return Add(name, (SchemaImporterExtension)
Activator
.CreateInstance(type));
System\Xml\Serialization\Compilation.cs (2)
119
contract = (XmlSerializerImplementation)
Activator
.CreateInstance(GetTypeFromAssembly(this.assembly, "XmlSerializerContract"));
232
contract = (XmlSerializerImplementation)
Activator
.CreateInstance(contractType);
System\Xml\Serialization\Mappings.cs (1)
1185
IXmlSerializable serializable = (IXmlSerializable)
Activator
.CreateInstance(type);
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3703
createInstance.Append(typeof(
Activator
).FullName);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2351
MethodInfo Activator_CreateInstance = typeof(
Activator
).GetMethod(
WindowsBase (3)
Base\MS\Internal\AssemblyHelper.cs (1)
227
handle =
Activator
.CreateInstance(extensionAssemblyName, extensionTypeName);
Base\System\Windows\DependencyProperty.cs (1)
339
defaultValue =
Activator
.CreateInstance(propertyType);
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
471
typeConverter =
Activator
.CreateInstance(converterType,
WsatConfig (2)
Configuration\FirewallWrapper.cs (2)
30
this.manager = (INetFirewallMgr)
Activator
.CreateInstance(Type.GetTypeFromCLSID(new Guid(FwMgrClassId)));
72
INetFirewallOpenPort openPort = (INetFirewallOpenPort)
Activator
.CreateInstance(Type.GetTypeFromCLSID(new Guid(FwOpenPortClassId)));
WsatUI (2)
Configuration\FirewallWrapper.cs (2)
30
this.manager = (INetFirewallMgr)
Activator
.CreateInstance(Type.GetTypeFromCLSID(new Guid(FwMgrClassId)));
72
INetFirewallOpenPort openPort = (INetFirewallOpenPort)
Activator
.CreateInstance(Type.GetTypeFromCLSID(new Guid(FwOpenPortClassId)));
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (1)
705
extension =
Activator
.CreateInstance(extensionType) as T;