82 references to CreateInstance
mscorlib (9)
system\diagnostics\eventing\eventsource.cs (1)
3172
attr = (Attribute)Activator.
CreateInstance
(attributeType, new object[] { data.ConstructorArguments[0].Value });
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
361
return Activator.
CreateInstance
(type, parameters);
system\reflection\assembly.cs (1)
2831
retval = (IPermission) Activator.
CreateInstance
(type, webArgs);
system\resources\filebasedresourcegroveler.cs (1)
172
return (ResourceSet)Activator.
CreateInstance
(_mediator.UserResourceSet, args);
system\resources\manifestbasedresourcegroveler.cs (3)
351
IResourceReader reader = (IResourceReader)Activator.
CreateInstance
(readerType, args);
409
rs = (ResourceSet)Activator.
CreateInstance
(_mediator.UserResourceSet, args);
416
rs = (ResourceSet)Activator.
CreateInstance
(_mediator.UserResourceSet, args);
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.Activities (6)
System\Activities\Activity.cs (1)
1519
DictionaryArgumentHelper helper = Activator.
CreateInstance
(concreteHelperType, new object[] { property, propertyDescriptor.Name }) as DictionaryArgumentHelper;
System\Activities\ActivityUtilities.cs (2)
434
argumentReference = Activator.
CreateInstance
(argumentValueGenericType.MakeGenericType(argumentType), referencedArgumentName);
439
argumentReference = Activator.
CreateInstance
(argumentReferenceGenericType.MakeGenericType(argumentType), referencedArgumentName);
System\Activities\Statements\MethodExecutor.cs (1)
89
Activator.
CreateInstance
(formalParameters[i].ParameterType, paramArrayCount);
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.Core.Presentation (4)
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\SwitchDesigner.xaml.cs (1)
410
object mutableKVPair = Activator.
CreateInstance
(caseType, new object[] { newKey, null });
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (1)
442
object mutableKVPair = Activator.
CreateInstance
(dictionaryEntryType, new object[] { wrapper.Name, argument });
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (1)
126
return (ActivityWithResult)Activator.
CreateInstance
(concreteExpType, converterValue);
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\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\View\DataGridHelper.cs (1)
553
EditingControlBehavior behavior = Activator.
CreateInstance
(editorBehaviorType, this.dataGrid) as EditingControlBehavior;
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
1031
newExpression = (ActivityWithResult)Activator.
CreateInstance
(targetExpressionType, expressionText);
System.Data (6)
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\ExpressionHelper.cs (1)
126
return (ActivityWithResult)Activator.
CreateInstance
(concreteExpType, converterValue);
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\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\View\VisualBasicEditor.xaml.cs (1)
1031
newExpression = (ActivityWithResult)Activator.
CreateInstance
(targetExpressionType, expressionText);
System.Data.Entity (2)
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.Linq (5)
DataContext.cs (2)
166
return Activator.
CreateInstance
(this.GetType(), new object[] { this.Connection, this.Mapping.MappingSource });
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 });
SqlClient\Reader\ObjectReaderCompiler.cs (1)
2178
this.globals.Add(Activator.
CreateInstance
(typeof(StrongBox<>).MakeGenericType(type), new object[] { value }));
SqlClient\SqlProvider.cs (1)
545
object engine = Activator.
CreateInstance
(engineType, new object[] { builder.ToString() });
System.Data.Services (1)
System\Data\Services\Providers\BasicExpandProvider.cs (1)
188
return (IQueryable)Activator.
CreateInstance
(resultQueryable, args);
System.Data.Services.Client (4)
System\Data\Services\Client\ClientConvert.cs (1)
192
return Activator.
CreateInstance
(knownTypes[(int)StorageType.Binary], Convert.FromBase64String(propertyValue));
System\Data\Services\Client\DataServiceContext.cs (1)
3871
collection = Activator.
CreateInstance
(
System\Data\Services\Client\DataServiceRequest.cs (1)
108
return (DataServiceRequest)Activator.
CreateInstance
(genericType, new object[] { requestUri });
System\Data\Services\Client\Util.cs (1)
514
return Activator.
CreateInstance
(type, arguments);
System.IdentityModel (1)
System\IdentityModel\Configuration\SecurityTokenServiceConfiguration.cs (1)
191
return Activator.
CreateInstance
(stsType, this) as STS;
System.ServiceModel (4)
System\ServiceModel\Configuration\StandardRuntimeFlagEnumValidatorAttribute.cs (1)
100
return (ConfigurationValidatorBase)Activator.
CreateInstance
(validatorType, null);
System\ServiceModel\Dispatcher\FaultFormatter.cs (2)
161
return (FaultException)Activator.
CreateInstance
(knownFaultType,
196
return (MessageFault)Activator.
CreateInstance
(operationFaultType, serializer, faultException);
System\ServiceModel\MsmqException.cs (1)
149
return Activator.
CreateInstance
(this.outerExceptionType, new object[] { this.Message, this }) as Exception;
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\Configuration\RoutingSection.cs (1)
617
return (MessageFilter)Activator.
CreateInstance
(customFilterType, filterData);
System.Web (4)
Configuration\HttpCapabilitiesBase.cs (1)
179
writer = (HtmlTextWriter)Activator.
CreateInstance
(writerType, arr);
HttpRuntime.cs (1)
3493
return Activator.
CreateInstance
(type, args);
UI\WebParts\WebPartManager.cs (2)
1801
connectionPoint = (ConsumerConnectionPoint)Activator.
CreateInstance
(connectionPointType, args);
1831
connectionPoint = (ProviderConnectionPoint)Activator.
CreateInstance
(connectionPointType, args);
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.Extensions (3)
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}));
System.Web.Mobile (1)
UI\MobileControls\Design\Util\DesignerUtility.cs (1)
86
Object serviceInstance = System.Activator.
CreateInstance
(
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (1)
168
attr = (Attribute)Activator.
CreateInstance
(t, new Object[]{varParams[i]});
System.Workflow.Activities (11)
Common\CompilerHelpers.cs (1)
73
provider = (CodeDomProvider)Activator.
CreateInstance
(type, new object[] { options });
Designers\WebServiceReceiveDesigner.cs (1)
120
typeFilterProvider = Activator.
CreateInstance
(typeFilterProviderType, new object[] { this.ServiceProvider }) as ITypeFilterProvider;
LocalService\WorkflowMessageEventHandler.cs (1)
96
return (Delegate)Activator.
CreateInstance
(eventHandlerType, new object[] { this, mHandler.MethodHandle.GetFunctionPointer() });
Rules\Executor.cs (6)
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\RuleValidation.cs (2)
707
result = Activator.
CreateInstance
(resultType, result);
720
result = Activator.
CreateInstance
(resultType, result);
System.Workflow.ComponentModel (10)
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (1)
122
Attribute attribute = (Attribute)Activator.
CreateInstance
(attributeType, constructorArguments.ToArray());
AuthoringOM\Design\CustomActivityDesigner.cs (1)
164
ToolboxItem item = Activator.
CreateInstance
(toolboxItemAttrib.ToolboxItemType, new object[] { rootActivity.GetType() }) as ToolboxItem;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
1011
ActivityToolboxItem item = Activator.
CreateInstance
(toolboxItemAttrib.ToolboxItemType, new object[] { activityType }) as ActivityToolboxItem;
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\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\Serializer\PropertySegmentSerializer.cs (1)
35
return Activator.
CreateInstance
(type, new object[] { serializationManager as IServiceProvider, serializationManager.Context.Current });
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
2590
obj = Activator.
CreateInstance
(type, positionalArgs.ToArray());
Shared\CompilerHelpers.cs (1)
71
provider = (CodeDomProvider)Activator.
CreateInstance
(type, new object[] { options });
System.WorkflowServices (1)
System\Workflow\Runtime\Hosting\ChannelManagerHelpers.cs (1)
198
factory = Activator.
CreateInstance
(channelFactoryType, args) as ChannelFactory;