238 references to CodeTypeReference
PresentationBuildTasks (16)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (16)
897
_ccRoot.StyleConnectorFn.PrivateImplementationType = new
CodeTypeReference
(KnownTypes.Types[(int)KnownElements.IStyleConnector]);
1129
_ccRoot.HookupFn.PrivateImplementationType = new
CodeTypeReference
(KnownTypes.Types[(int)KnownElements.IComponentConnector]);
1255
var iComponentConnector = new
CodeTypeReference
(KnownTypes.Types[(int)KnownElements.IComponentConnector]);
1475
new
CodeTypeReference
(typeof(SuppressMessageAttribute)),
1485
new
CodeTypeReference
(typeof(DebuggerNonUserCodeAttribute)));
1995
cmmEventHandler.ReturnType = new
CodeTypeReference
(typeof(void));
2016
cmmEventHandlerHelper.ReturnType = new
CodeTypeReference
(typeof(void));
2366
ctrTypeArg = new
CodeTypeReference
(typeParam);
2391
new
CodeTypeReference
(typeof(GeneratedCodeAttribute)),
2511
cmmCD.ReturnType = new
CodeTypeReference
(typeof(Delegate));
2545
cmmLC.ImplementationTypes.Add(new
CodeTypeReference
(KnownTypes.Types[(int)KnownElements.IComponentConnector]));
2630
cmfCL.Type = new
CodeTypeReference
(typeof(bool));
2685
cmmCI.ReturnType = new
CodeTypeReference
(typeof(Object));
2720
cmmGPV.ReturnType = new
CodeTypeReference
(typeof(Object));
2784
cmmCD.ReturnType = new
CodeTypeReference
(typeof(Delegate));
3104
cmmMain.ReturnType = new
CodeTypeReference
(typeof(void));
System (16)
compmod\system\codedom\CodeArrayCreateExpression.cs (3)
63
this.createType = new
CodeTypeReference
(createType);
90
this.createType = new
CodeTypeReference
(createType);
117
this.createType = new
CodeTypeReference
(createType);
compmod\system\codedom\CodeCastExpression.cs (1)
63
TargetType = new
CodeTypeReference
(targetType);
compmod\system\codedom\CodeCatchClause.cs (1)
80
catchExceptionType = new
CodeTypeReference
(typeof(System.Exception));
compmod\system\codedom\CodeMemberField.cs (1)
62
Type = new
CodeTypeReference
(type);
compmod\system\codedom\CodeObjectCreateExpression.cs (1)
62
CreateType = new
CodeTypeReference
(createType);
compmod\system\codedom\CodeParameterDeclarationExpression.cs (1)
64
Type = new
CodeTypeReference
(type);
compmod\system\codedom\CodeTypeOfExpression.cs (1)
58
Type = new
CodeTypeReference
(type);
compmod\system\codedom\CodeTypeReference.cs (3)
64
this.arrayElementType = new
CodeTypeReference
(type.GetElementType());
75
public CodeTypeReference (Type type, CodeTypeReferenceOptions codeTypeReferenceOption) :
this
(type) {
110
TypeArguments.Add(new
CodeTypeReference
(genericArgs[i]));
compmod\system\codedom\CodeTypeReferenceCollection.cs (1)
84
Add(new
CodeTypeReference
(value));
compmod\system\codedom\CodeTypeReferenceExpression.cs (1)
58
Type = new
CodeTypeReference
(type);
compmod\system\codedom\CodeVariableDeclarationStatement.cs (2)
62
Type = new
CodeTypeReference
(type);
91
Type = new
CodeTypeReference
(type);
System.Activities (54)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (54)
154
new
CodeTypeReference
(typeof(GeneratedCodeAttribute)),
170
new
CodeTypeReference
(typeof(BrowsableAttribute)),
184
new
CodeTypeReference
(typeof(EditorBrowsableAttribute)),
187
new
CodeTypeReference
(typeof(EditorBrowsableState))), "Never")));
472
accessorField.Type = new
CodeTypeReference
(memberData.Type);
540
accessorProperty.Type = new
CodeTypeReference
(memberData.Type);
555
accessorProperty.Type = new
CodeTypeReference
(typeof(object));
571
accessorPropertyForReadOnly.Type = new
CodeTypeReference
(typeof(object));
712
classDeclaration.BaseTypes.Add(new
CodeTypeReference
(typeof(ICompiledExpressionRoot)));
715
CodeMemberField compiledRootField = new CodeMemberField(new
CodeTypeReference
(typeof(Activity)), rootActivityFieldName);
721
languageProperty.ReturnType = new
CodeTypeReference
(typeof(string));
723
languageProperty.ImplementationTypes.Add(new
CodeTypeReference
(typeof(ICompiledExpressionRoot)));
733
dataContextActivitiesField.Type = new
CodeTypeReference
(typeof(object));
740
forImplementationField.Type = new
CodeTypeReference
(typeof(bool));
760
new
CodeTypeReference
(typeof(Activity)),
772
new
CodeTypeReference
(typeof(ArgumentNullException)),
812
getLocationsMethod.ImplementationTypes.Add(new
CodeTypeReference
(typeof(ICompiledExpressionRoot)));
814
getLocationsMethod.ReturnType = new
CodeTypeReference
(typeof(IList<string>));
816
getLocationsMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(int)), "expressionId"));
837
CodeVariableDeclarationStatement returnLocationsVar = new CodeVariableDeclarationStatement(new
CodeTypeReference
(typeof(List<string>)),
839
new CodeObjectCreateExpression(new
CodeTypeReference
(typeof(List<string>))));
884
getExpressionTreeForExpressionMethod.ReturnType = new
CodeTypeReference
(typeof(Expression));
885
getExpressionTreeForExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(int)), "expressionId"));
886
getExpressionTreeForExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(IList<LocationReference>)), "locationReferences"));
887
getExpressionTreeForExpressionMethod.ImplementationTypes.Add(new
CodeTypeReference
(typeof(ICompiledExpressionRoot)));
928
invokeExpressionMethod.ImplementationTypes.Add(new
CodeTypeReference
(typeof(ICompiledExpressionRoot)));
930
invokeExpressionMethod.ReturnType = new
CodeTypeReference
(typeof(object));
932
invokeExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(int)), "expressionId"));
936
invokeExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(IList<LocationReference>)), "locations"));
937
invokeExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(ActivityContext)), "activityContext"));
941
invokeExpressionMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(IList<Location>)), "locations"));
1174
new CodeTypeReference[] { new
CodeTypeReference
(descriptor.ResultType) });
1269
isValidMethod.ReturnType = new
CodeTypeReference
(typeof(bool));
1274
isValidMethod.ImplementationTypes.Add(new
CodeTypeReference
(typeof(ICompiledExpressionRoot)));
1276
isValidMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(string)), "expressionText"));
1277
isValidMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(bool)), "isReference"));
1278
isValidMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(IList<LocationReference>)), "locations"));
1280
CodeParameterDeclarationExpression expressionIdParam = new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(int)), "expressionId");
1478
expressionMethod.ReturnType = new
CodeTypeReference
(typeof(Expression));
1537
expressionMethod.ReturnType = new
CodeTypeReference
(resultType);
1538
expressionMethod.CustomAttributes.Add(new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(DebuggerHiddenAttribute))));
1582
expressionMethod.CustomAttributes.Add(new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(DebuggerHiddenAttribute))));
1632
expressionMethod.CustomAttributes.Add(new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(DebuggerHiddenAttribute))));
1779
offsetField.Type = new
CodeTypeReference
(typeof(int));
1786
expectedLocationsCountField.Type = new
CodeTypeReference
(typeof(int));
1824
dataContextActivitiesHelper.ReturnType = new
CodeTypeReference
(typeof(object));
1828
new
CodeTypeReference
(typeof(Activity)),
1833
new
CodeTypeReference
(typeof(bool)),
1852
setLocationsOffsetMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(int)),
1892
cacheHelper.ReturnType = new
CodeTypeReference
(typeof(CompiledDataContext[]));
2196
validateMethod.ReturnType = new
CodeTypeReference
(typeof(bool));
2200
new
CodeTypeReference
(typeof(IList<LocationReference>)),
2205
new
CodeTypeReference
(typeof(bool)),
2210
new
CodeTypeReference
(typeof(int)),
System.Data (1)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1422
private static CodeTypeReference Type(Type type) { return new
CodeTypeReference
(type); }
System.Data.Entity.Design (9)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (4)
489
getViewAtMethod.ReturnType = new
CodeTypeReference
(typeof(KeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), typeof(string) }));
490
CodeParameterDeclarationExpression parameter = new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(int)), "index");
533
new CodeObjectCreateExpression(new
CodeTypeReference
(typeof(IndexOutOfRangeException)))));
543
viewMethod.ReturnType = new
CodeTypeReference
(typeof(KeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), typeof(string) }));
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
273
onContextCreatedPartialMethod.ReturnType = new
CodeTypeReference
(typeof(void));
444
codeMethod.ReturnType = new
CodeTypeReference
(typeof(void));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
97
onChangingDomMethod.ReturnType = new
CodeTypeReference
(typeof(void));
105
onChangedDomMethod.ReturnType = new
CodeTypeReference
(typeof(void));
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (1)
106
typeDecl.BaseTypes.Add(new
CodeTypeReference
(interfaceType));
System.Data.Services.Design (6)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
30
new
CodeTypeReference
(typeof(System.CodeDom.Compiler.GeneratedCodeAttribute)),
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
786
propertyChangedMethod.ReturnType = new
CodeTypeReference
(typeof(void));
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
235
onContextCreatedPartialMethod.ReturnType = new
CodeTypeReference
(typeof(void));
606
codeMethod.ReturnType = new
CodeTypeReference
(typeof(void));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
103
onChangingDomMethod.ReturnType = new
CodeTypeReference
(typeof(void));
110
onChangedDomMethod.ReturnType = new
CodeTypeReference
(typeof(void));
System.Data.SqlXml (2)
System\Xml\Xsl\Xslt\Scripts.cs (1)
263
new
CodeTypeReference
(typeof(System.Security.SecurityRulesAttribute)),
System\Xml\Xsl\XsltOld\Compiler.cs (1)
783
new
CodeTypeReference
(typeof(System.Security.SecurityRulesAttribute)),
System.Runtime.Serialization (1)
System\Runtime\Serialization\CodeExporter.cs (1)
366
return new
CodeTypeReference
(type);
System.ServiceModel (22)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
17
CodeTypeReference refT = new
CodeTypeReference
(typeof(T));
System\ServiceModel\Description\ClientClassGenerator.cs (16)
52
static CodeTypeReference voidTypeRef = new
CodeTypeReference
(typeof(void));
53
static CodeTypeReference asyncResultTypeRef = new
CodeTypeReference
(typeof(IAsyncResult));
254
CodeAttributeDeclaration browsableAttribute = new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(EditorBrowsableAttribute)));
520
argsType.BaseTypes.Add(new
CodeTypeReference
(asyncCompletedEventArgsType));
524
resultsField.Type = new
CodeTypeReference
(objectArrayType);
621
operationCompletedEvent.Type = new
CodeTypeReference
(eventHandlerType);
657
onBeginOperationMethod.ReturnType = new
CodeTypeReference
(asyncResultType);
662
inValuesParam.Type = new
CodeTypeReference
(objectArrayType);
711
onEndOperationMethod.ReturnType = new
CodeTypeReference
(objectArrayType);
717
retArray.CreateType = new
CodeTypeReference
(objectArrayType);
774
operationCompletedDelegate.Type = new
CodeTypeReference
(sendOrPostCallbackType);
790
operationCompletedMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(objectType), "state"));
791
operationCompletedMethod.ReturnType = new
CodeTypeReference
(voidType);
848
eventAsyncMethod.ReturnType = new
CodeTypeReference
(voidType);
850
CodeArrayCreateExpression invokeAsyncInValues = new CodeArrayCreateExpression(new
CodeTypeReference
(objectArrayType));
863
eventAsyncMethod.Parameters.Add(new CodeParameterDeclarationExpression(new
CodeTypeReference
(objectType), userStateParamName));
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
146
static CodeTypeReference dataContractAttributeTypeRef = new
CodeTypeReference
(typeof(DataContractAttribute));
System\ServiceModel\Description\OperationGenerator.cs (1)
965
taskReturnType = new
CodeTypeReference
(ServiceReflector.taskType);
System\ServiceModel\Description\ServiceContractGenerator.cs (2)
71
return new
CodeTypeReference
(type);
643
static CodeTypeReference voidTypeReference = new
CodeTypeReference
(typeof(void));
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
169
CodeAttributeDeclaration knownType = new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(ServiceKnownTypeAttribute)));
System.ServiceModel.Activation (3)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (3)
164
codeTypeDeclaration.BaseTypes.Add(new
CodeTypeReference
(typeof(WorkflowService)));
169
codeMemberMethod.ReturnType = new
CodeTypeReference
(typeof(ICompiledExpressionRoot));
171
new
CodeTypeReference
(typeof(Activity)),
System.Web (66)
Compilation\AssemblyBuilder.cs (9)
521
new
CodeTypeReference
(typeof(System.Reflection.AssemblyCultureAttribute)),
532
new
CodeTypeReference
(typeof(GeneratedCodeAttribute)));
542
new
CodeTypeReference
(typeof(AllowPartiallyTrustedCallersAttribute)));
551
new
CodeTypeReference
(typeof(AssemblyKeyFileAttribute)),
561
new
CodeTypeReference
(typeof(AssemblyKeyNameAttribute)),
571
new
CodeTypeReference
(typeof(AssemblyDelaySignAttribute)),
593
declaration = new CodeAttributeDeclaration(new
CodeTypeReference
(attrType), new CodeAttributeArgument(field));
600
declaration = new CodeAttributeDeclaration(new
CodeTypeReference
(attrType), new CodeAttributeArgument(field));
608
new
CodeTypeReference
(typeof(System.Runtime.Versioning.TargetFrameworkAttribute)),
Compilation\BaseCodeDomTreeGenerator.cs (7)
369
method.ReturnType = new
CodeTypeReference
(typeof(void));
423
_intermediateClass.BaseTypes.Add(new
CodeTypeReference
(t));
553
prop.Type = new
CodeTypeReference
(propType);
613
prop.Type = new
CodeTypeReference
(propType);
661
prop.Type = new
CodeTypeReference
(declaredType);
781
method.ReturnType = new
CodeTypeReference
(typeof(void));
918
CodeAttributeDeclaration attributeDeclaration = new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(System.Diagnostics.DebuggerNonUserCodeAttribute)));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (12)
129
parserDeclaration.Type = new
CodeTypeReference
(typeof(IParserAccessor));
202
method.ReturnType = new
CodeTypeReference
(typeof(Control));
209
method.ReturnType = new
CodeTypeReference
(typeof(Control));
347
newDelegate.DelegateType = new
CodeTypeReference
(typeof(BuildTemplateMethod));
366
((CodeDelegateCreateExpression)newExtractValuesDelegate).DelegateType = new
CodeTypeReference
(typeof(ExtractTemplateValuesMethod));
557
newDelegate.DelegateType = new
CodeTypeReference
(typeof(BuildTemplateMethod));
687
newDelegate.DelegateType = new
CodeTypeReference
(typeof(BuildMethod));
881
newDelegate.DelegateType = new
CodeTypeReference
(typeof(EventHandler));
894
newDelegate.DelegateType = new
CodeTypeReference
(typeof(EventHandler));
904
newDelegate.DelegateType = new
CodeTypeReference
(typeof(RenderMethod));
946
newDelegate.DelegateType = new
CodeTypeReference
(eventEntry.HandlerType);
987
method.ReturnType = new
CodeTypeReference
(typeof(IOrderedDictionary));
Compilation\BrowserCapabilitiesCompiler.cs (4)
290
factoryType.BaseTypes.Add(new
CodeTypeReference
(baseType));
299
method.ReturnType = new
CodeTypeReference
(typeof(void));
343
cmm.ReturnType = new
CodeTypeReference
(typeof(void));
424
cmm.ReturnType = new
CodeTypeReference
(typeof(void));
Compilation\CodeDOMUtility.cs (1)
69
exp.CreateType = new
CodeTypeReference
(valueType.GetElementType());
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (2)
85
method.ReturnType = new
CodeTypeReference
(typeof(object));
136
new
CodeTypeReference
(typeof(System.InvalidOperationException)),
Compilation\PageCodeDomTreeGenerator.cs (12)
45
_intermediateClass.BaseTypes.Add(new
CodeTypeReference
(typeof(IRequiresSessionState)));
48
_intermediateClass.BaseTypes.Add(new
CodeTypeReference
(typeof(IReadOnlySessionState)));
53
_sourceDataClass.BaseTypes.Add(new
CodeTypeReference
(typeof(IHttpAsyncHandler)));
78
dependencies.Type = new
CodeTypeReference
(typeof(string[]));
197
outputCacheSettingsDeclaration.Type = new
CodeTypeReference
(typeof(OutputCacheParameters));
203
cacheSettingsObject.CreateType = new
CodeTypeReference
(typeof(OutputCacheParameters));
353
method.ReturnType = new
CodeTypeReference
(typeof(int));
459
method.ImplementationTypes.Add(new
CodeTypeReference
(typeof(IHttpAsyncHandler)));
463
method.ReturnType = new
CodeTypeReference
(typeof(IAsyncResult));
517
method.ImplementationTypes.Add(new
CodeTypeReference
(typeof(IHttpAsyncHandler)));
521
method.ReturnType = new
CodeTypeReference
(typeof(IAsyncResult));
586
_sourceDataClass.BaseTypes.Add(new
CodeTypeReference
(typeof(IHttpHandler)));
Compilation\PageThemeCodeDomTreeGenerator.cs (2)
28
private CodeTypeReference _controlSkinDelegateType = new
CodeTypeReference
(typeof(ControlSkinDelegate));
29
private CodeTypeReference _controlSkinType = new
CodeTypeReference
(typeof(ControlSkin));
Compilation\ProfileBuildProvider.cs (2)
111
type.BaseTypes.Add(new
CodeTypeReference
(baseType));
261
grpType.BaseTypes.Add(new
CodeTypeReference
(typeof(ProfileGroupBase)));
Compilation\RouteValueExpressionBuilder.cs (1)
35
new CodeTypeOfExpression(new
CodeTypeReference
(entry.ControlType)),
Compilation\TemplateControlCodeDomTreeGenerator.cs (6)
126
prop.Type = new
CodeTypeReference
(propertyType);
154
bindMethod.ReturnType = new
CodeTypeReference
(typeof(string));
236
prop.Type = new
CodeTypeReference
(typeof(bool));
262
prop.Type = new
CodeTypeReference
(appType);
308
var customAttrExpr = new CodeAttributeDeclaration(new
CodeTypeReference
(attr.AttributeType), attrArgs.ToArray());
312
var defaultValAttrExpr = new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(DefaultParameterValueAttribute)),
Configuration\BrowserCapabilitiesCodeGenerator.cs (7)
735
method.ReturnType = new
CodeTypeReference
(typeof(void));
897
method.ReturnType = new
CodeTypeReference
(typeof(void));
899
new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(IDictionary)), _dictionaryRefName);
960
method.ReturnType = new
CodeTypeReference
(typeof(void));
962
new CodeParameterDeclarationExpression(new
CodeTypeReference
(typeof(IDictionary)), _dictionaryRefName);
991
cmm.ReturnType = new
CodeTypeReference
(typeof(bool));
1102
cmm.ReturnType = new
CodeTypeReference
(typeof(void));
Profile\HttpProfileBase.cs (1)
342
prop.PropertyCodeRefType = new
CodeTypeReference
(t);
System.Web.Services (4)
System\Web\Services\Description\WebCodeGenerator.cs (4)
280
callback.Type = new
CodeTypeReference
(typeof(SendOrPostCallback));
304
create.CreateType = new
CodeTypeReference
(typeof(AsyncCompletedEventArgs));
339
createDelegate.DelegateType = new
CodeTypeReference
(typeof(SendOrPostCallback));
359
codeClass.BaseTypes.Add(new
CodeTypeReference
(typeof(AsyncCompletedEventArgs)));
System.Workflow.Activities (9)
Common\DelegateTypeInfo.cs (2)
108
parameters[index] = new CodeParameterDeclarationExpression(new
CodeTypeReference
(paramType), paramName);
112
this.returnType = new
CodeTypeReference
(method.ReturnType);
Rules\Parser\Parser.cs (3)
1361
CodeTypeReference typeRef = new
CodeTypeReference
(type);
1804
CodeTypeReference typeRef = new
CodeTypeReference
(type);
2216
CodeTypeReference typeRef = new
CodeTypeReference
(type);
WebServiceReceive.cs (4)
789
webMethod.ReturnType = new
CodeTypeReference
(methodInfo.ReturnType);
801
paramArrayCreationExpression.CreateType = new
CodeTypeReference
(typeof(Object));
813
paramDecl.CustomAttributes.Add(new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(System.Runtime.InteropServices.OutAttribute))));
842
CodeVariableDeclarationStatement resultsDeclaration = new CodeVariableDeclarationStatement(new CodeTypeReference(new
CodeTypeReference
(typeof(Object)), 1), "results");
System.Workflow.ComponentModel (8)
AuthoringOM\Compiler\TypeSystem\EventInfo.cs (2)
63
codeAddMethod.ReturnType = new
CodeTypeReference
(typeof(void));
82
codeRemoveMethod.ReturnType = new
CodeTypeReference
(typeof(void));
AuthoringOM\Serializer\CodeTypeReferenceSerializer.cs (1)
93
result = new
CodeTypeReference
(type);
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (2)
119
codeMethodInvokeExpr = new CodeMethodInvokeExpression(objectExpression, "SetBinding", new CodeExpression[] { param1, new CodeCastExpression(new
CodeTypeReference
(typeof(ActivityBind)), param2) });
151
CodeDelegateCreateExpression listener = new CodeDelegateCreateExpression(new
CodeTypeReference
(eventDesc.EventType), new CodeThisReferenceExpression(), handler);
AuthoringOM\Serializer\PrimitiveCodeDomSerializer.cs (1)
87
return new CodeCastExpression(new
CodeTypeReference
(value.GetType()), expression);
Shared\DelegateTypeInfo.cs (2)
107
parameters[index] = new CodeParameterDeclarationExpression(new
CodeTypeReference
(paramType), paramName);
111
this.returnType = new
CodeTypeReference
(method.ReturnType);
System.Xml (5)
System\Xml\Serialization\CodeExporter.cs (3)
219
codeClass.BaseTypes.Add(new
CodeTypeReference
(typeof(long)));
338
codeClass.BaseTypes.Add(new
CodeTypeReference
(typeof(System.ComponentModel.INotifyPropertyChanged)));
373
propertyChangedEvent.Type = new
CodeTypeReference
(typeof(PropertyChangedEventHandler));
System\Xml\Serialization\XmlCodeExporter.cs (2)
272
initExpression = new CodeObjectCreateExpression(new
CodeTypeReference
(typeof(DateTime)), new CodeExpression[] {new CodePrimitiveExpression(ticks)});
278
initExpression = new CodeObjectCreateExpression(new
CodeTypeReference
(typeof(Guid)), new CodeExpression[] {valueExpression});
XamlBuildTask (16)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (15)
94
result.Members.Add(new CodeMemberField() { Name = "_contentLoaded", Type = new
CodeTypeReference
(typeof(bool)) });
137
result.BaseTypes.Add(new
CodeTypeReference
(typeof(ISupportInitialize)));
271
codeExp = new CodeCastExpression { TargetType = new
CodeTypeReference
(typeof(object)), Expression = new CodePrimitiveExpression(null) };
391
new CodeAttributeDeclaration(new
CodeTypeReference
(typeof(DebuggerNonUserCodeAttribute))),
701
ReturnType = new
CodeTypeReference
(typeof(string)),
742
Type = new
CodeTypeReference
(typeof(int)),
769
Type = new
CodeTypeReference
(typeof(string)),
820
CreateType = new
CodeTypeReference
(typeof(InvalidOperationException)),
834
CodeTypeReference ifaceType = new
CodeTypeReference
(typeof(ISupportInitialize));
1094
Type = new
CodeTypeReference
(typeof(IList<Assembly>)),
1102
Type = new
CodeTypeReference
(typeof(IList<Assembly>)),
1144
Type = new
CodeTypeReference
(typeof(WeakReference)),
1152
Type = new
CodeTypeReference
(typeof(XamlSchemaContext)),
1215
ReturnType = new
CodeTypeReference
(typeof(Assembly))
1294
ReturnType = new
CodeTypeReference
(typeof(IList<Assembly>)),
Microsoft\Build\Tasks\Xaml\CodeDomExtensionMethods.cs (1)
18
Type = new
CodeTypeReference
(type),