58 references to CodeVariableDeclarationStatement
System.Activities (1)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
837
CodeVariableDeclarationStatement returnLocationsVar = new
CodeVariableDeclarationStatement
(new CodeTypeReference(typeof(List<string>)),
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
189
CodeVariableDeclarationStatement createNewInstance = new
CodeVariableDeclarationStatement
(
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
180
CodeVariableDeclarationStatement createNewInstance = new
CodeVariableDeclarationStatement
(
System.Management (53)
WmiGenerator.cs (53)
2905
cis.TrueStatements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),
2915
cis.TrueStatements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath));
2926
cis.TrueStatements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()),strClassObj,coce1));
3067
cis.TrueStatements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),strOutParams,cmie));
3520
cmm.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),pathObj,coce));
3537
cmm.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()),
3713
cmm.Statements.Add(new
CodeVariableDeclarationStatement
(
5794
new
CodeVariableDeclarationStatement
(
5806
new
CodeVariableDeclarationStatement
(
5818
cfls.InitStatement = new
CodeVariableDeclarationStatement
(
5916
new
CodeVariableDeclarationStatement
(
5927
new
CodeVariableDeclarationStatement
(
5939
cfls.InitStatement = new
CodeVariableDeclarationStatement
(
6136
cmProp.GetStatements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference(strEnumName,1),ArrToRet,
6312
cmm.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()),
6342
cmm.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath));
6447
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.DateTime"),"initializer",new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("System.DateTime"),"MinValue")));
6450
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int32"),year,new CodePropertyReferenceExpression(cvreInitializer,"Year")));
6453
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int32"),month, new CodePropertyReferenceExpression(cvreInitializer,"Month")));
6456
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int32"),day,new CodePropertyReferenceExpression(cvreInitializer,"Day")));
6459
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int32"),hour,new CodePropertyReferenceExpression(cvreInitializer,"Hour")));
6462
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int32"),minute,new CodePropertyReferenceExpression(cvreInitializer,"Minute")));
6465
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int32"),second,new CodePropertyReferenceExpression(cvreInitializer,"Second")));
6468
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int64"),ticks,new CodePrimitiveExpression(0)));
6471
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.String"),dmtf,new CodeVariableReferenceExpression(dmtfParam)));
6475
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.DateTime"),datetimeVariable,cpreMinVal));
6478
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.String"),tempStr,new CodeFieldReferenceExpression(
6740
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.TimeSpan"),tickoffset,cmie1));
6749
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int32"),utcOffset,new CodePrimitiveExpression(0)));
6751
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int32"),offsetAdjust,new CodePrimitiveExpression(0)));
6760
new
CodeVariableDeclarationStatement
(
6920
new
CodeVariableDeclarationStatement
(
6939
cmmts.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.TimeSpan"),"maxTimeSpan",cpreMaxVal));
6969
cmmts.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.TimeSpan"),"minTimeSpan",cpreMinVal));
7059
cmmts.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.TimeSpan"),tsTemp,coce));
7083
new
CodeVariableDeclarationStatement
(
7095
cmmts.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.String"),strmicrosec,cmie));
7161
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.String"),strUtc,
7182
new
CodeVariableDeclarationStatement
(
7196
new
CodeVariableDeclarationStatement
(
7269
cis2.FalseStatements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.String"),"strTemp",cmie1));
7305
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.String"),dmtfDateTime,cmie2));
7355
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.DateTime"),dtTemp,coce));
7378
new
CodeVariableDeclarationStatement
(
7391
cmmdt.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.String"),strmicrosec,cmie1));
7487
cmmts.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int32"),days,new CodePrimitiveExpression(0)));
7489
cmmts.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int32"),hours,new CodePrimitiveExpression(0)));
7491
cmmts.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int32"),minutes,new CodePrimitiveExpression(0)));
7493
cmmts.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int32"),seconds,new CodePrimitiveExpression(0)));
7495
cmmts.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.Int64"),ticks,new CodePrimitiveExpression(0)));
7585
tryblock.TryStatements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.String"),strTemp,
7748
cmmts.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.TimeSpan"),timespan,coce));
7759
cmmts.Statements.Add(new
CodeVariableDeclarationStatement
(new CodeTypeReference("System.TimeSpan"),tsTemp,cmie));
System.ServiceModel (2)
System\ServiceModel\Description\ClientClassGenerator.cs (2)
276
helperMethod.Statements.Add(new
CodeVariableDeclarationStatement
(param.Type, inValue.VariableName, new CodeObjectCreateExpression(param.Type)));
296
helperMethod.Statements.Add(new
CodeVariableDeclarationStatement
(method.ReturnType, outVar.VariableName, invokeMethod));