143 references to IsStatic
mscorlib (15)
system\appdomain.cs (1)
155
if (!list[i].Method.
IsStatic
)
system\diagnostics\eventing\eventsource.cs (1)
3384
if (/* method.IsVirtual || */ method.
IsStatic
)
System\Diagnostics\Eventing\TraceLogging\TypeAnalysis.cs (1)
51
if (getterInfo.
IsStatic
|| !getterInfo.IsPublic)
system\reflection\ConstructorInfo.cs (3)
183
if (DeclaringType.IsArray && IsPublic && !
IsStatic
)
231
else if (
IsStatic
|| declaringType != null && declaringType.IsAbstract)
355
if (target == null &&
IsStatic
)
system\reflection\emit\dynamicilgenerator.cs (2)
138
if (!meth.
IsStatic
&&
343
if (!(methodInfo is SymbolMethod) && methodInfo.
IsStatic
== false && !(opcode.Equals(OpCodes.Newobj)))
system\reflection\emit\ilgenerator.cs (1)
633
if (!(methodInfo is SymbolMethod) && methodInfo.
IsStatic
== false && !(opcode.Equals(OpCodes.Newobj)))
system\reflection\methodbase.cs (2)
245
!
IsStatic
&&
374
bool _MethodBase.IsStatic { get { return
IsStatic
; } }
system\reflection\methodinfo.cs (2)
149
if (m_declaringType.IsArray && IsPublic && !
IsStatic
)
829
if (!IsVirtual ||
IsStatic
|| m_declaringType == null || m_declaringType.IsInterface)
system\runtime\interopservices\registrationservices.cs (1)
1021
if(!CurrentMethod.
IsStatic
)
system\runtime\remoting\channelservices.cs (1)
627
if (!mi.IsPublic || mi.
IsStatic
)
PresentationFramework (1)
src\Framework\System\Windows\PropertyPath.cs (1)
183
return mi != null && mi.
IsStatic
;
System (5)
compmod\system\componentmodel\design\serialization\InstanceDescriptor.cs (3)
60
if (ci.
IsStatic
) {
69
if (!mi.
IsStatic
) {
82
if (mi != null && !mi.
IsStatic
) {
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (2)
1152
if (getMethod != null && !getMethod.
IsStatic
&& getMethod.IsPublic)
1156
if (setMethod != null && (setMethod.
IsStatic
|| !setMethod.IsPublic))
System.Activities (25)
System\Activities\Expressions\ExpressionServices.cs (3)
1188
if (!unaryExpression.Method.
IsStatic
)
1212
if (!binaryExpression.Method.
IsStatic
)
1299
if (methodInfo.
IsStatic
)
System\Activities\Expressions\MethodCallExpressionHelper.cs (3)
65
if (!methodInfo.
IsStatic
)
82
if (!methodInfo.
IsStatic
)
158
if (!methodInfo.
IsStatic
&& methodInfo.DeclaringType.IsValueType && valueTypeReference)
System\Activities\Expressions\PropertyReference.cs (4)
80
if ((getMethod != null && !getMethod.
IsStatic
) || (setMethod != null && !setMethod.
IsStatic
))
135
if (!this.propertyInfo.GetGetMethod().
IsStatic
&& this.owner == null)
153
if (!this.propertyInfo.GetSetMethod().
IsStatic
&& this.owner == null)
System\Activities\Expressions\PropertyValue.cs (3)
57
this.isOperationFunctionStatic = propertyInfo.GetAccessors()[0].
IsStatic
;
69
if ((getMethod != null && !getMethod.
IsStatic
) || (setMethod != null && !setMethod.
IsStatic
))
System\Activities\Expressions\ValueTypePropertyReference.cs (1)
79
if (setMethod != null && !setMethod.
IsStatic
)
System\Activities\ExpressionUtilities.cs (4)
587
if (this.targetObject == null && !this.getItemMethod.
IsStatic
)
605
if (this.targetObject == null && !this.setItemMethod.
IsStatic
)
810
if (this.owner == null && (getMethodInfo == null || !getMethodInfo.
IsStatic
))
831
if (this.owner == null && (setMethodInfo == null || !setMethodInfo.
IsStatic
))
System\Activities\Runtime\CallbackWrapper.cs (2)
104
Fx.Assert(callback.Method.
IsStatic
, "This method should be static when target is null");
278
if (!callbackMethod.
IsStatic
)
System\Activities\Statements\MethodResolver.cs (5)
267
if (this.beginMethod != null && this.endMethod != null && this.beginMethod.
IsStatic
== this.endMethod.
IsStatic
)
591
public override bool MethodIsStatic { get { return this.syncMethod.
IsStatic
; } }
643
public override bool MethodIsStatic { get { return this.beginMethod.
IsStatic
; } }
703
public override bool MethodIsStatic { get { return this.asyncMethod.
IsStatic
; } }
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1701
if (info.
IsStatic
&& info.Name.StartsWith("Get", StringComparison.Ordinal))
System.ComponentModel.DataAnnotations (1)
DataAnnotations\LocalizableString.cs (1)
126
if (getter == null || !(getter.IsPublic && getter.
IsStatic
)) {
System.Core (19)
Microsoft\Scripting\Ast\BinaryExpression.cs (1)
728
if (!method.
IsStatic
)
Microsoft\Scripting\Ast\ElementInit.cs (1)
129
if (addMethod.
IsStatic
) {
Microsoft\Scripting\Ast\IndexExpression.cs (3)
384
if (getter.
IsStatic
^ setter.
IsStatic
) throw Error.BothAccessorsMustBeStatic();
405
if (method.
IsStatic
) {
Microsoft\Scripting\Ast\LambdaExpression.cs (1)
172
ContractUtils.Requires(method.
IsStatic
, "method");
Microsoft\Scripting\Ast\MemberExpression.cs (2)
267
if (mi.
IsStatic
) {
294
flags |= (mi.
IsStatic
) ? BindingFlags.Static : BindingFlags.Instance;
Microsoft\Scripting\Ast\MethodCallExpression.cs (1)
816
if (method.
IsStatic
) {
Microsoft\Scripting\Ast\NewExpression.cs (2)
312
if (pi.GetGetMethod().
IsStatic
) {
319
if (method.
IsStatic
) {
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (1)
169
if (!node.Method.
IsStatic
&&
Microsoft\Scripting\Compiler\LambdaCompiler.cs (2)
280
return index + (_hasClosureArgument ? 1 : 0) + (_method.
IsStatic
? 0 : 1);
293
Debug.Assert(_method.
IsStatic
, "must be a static method");
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (2)
321
if (!method.
IsStatic
) {
410
if (mi.
IsStatic
) {
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (2)
297
Debug.Assert(b.Method.
IsStatic
);
424
Debug.Assert(b.Method.
IsStatic
);
System\Linq\SequenceQuery.cs (1)
200
if ((m.Method.
IsStatic
|| m.Method.DeclaringType.IsAssignableFrom(obj.Type))
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1701
if (info.
IsStatic
&& info.Name.StartsWith("Get", StringComparison.Ordinal))
System.Data.Entity (10)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1754
if (method.
IsStatic
&& typeof(System.Runtime.CompilerServices.Closure) == methodParams[0].ParameterType)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (3)
118
if (mi.
IsStatic
)
196
if (mi.
IsStatic
)
404
if (setterMethodInfo.
IsStatic
)
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (1)
140
if (m.Method.
IsStatic
)
System\Data\Objects\ELinq\MethodCallTranslator.cs (1)
861
if (!call.Method.
IsStatic
)
System\Data\Objects\ELinq\SpatialMethodCallTranslator.cs (3)
46
Debug.Assert(method.
IsStatic
&& method.IsPublic &&
55
Debug.Assert(!method.
IsStatic
&& method.IsPublic &&
237
if (method.
IsStatic
)
System\Data\Objects\ELinq\SpatialPropertyTranslator.cs (1)
47
!property.GetGetMethod().
IsStatic
&&
System.Data.Linq (28)
SqlClient\Common\SqlNode.cs (1)
1750
if (value == null && !this.method.
IsStatic
)
SqlClient\Query\MethodCallConverter.cs (6)
47
return !call.Method.
IsStatic
&& call.Method.Name == "CompareTo" && call.Arguments.Count == 1 && call.Method.ReturnType == typeof(int);
51
return call.Method.
IsStatic
&& call.Method.Name == "Compare" && call.Arguments.Count > 1 && call.Method.ReturnType == typeof(int);
78
return call.Method.
IsStatic
&&
88
return mc.Method.
IsStatic
&&
105
if (mc.Method.
IsStatic
) {
218
if (mc.Method.
IsStatic
) {
SqlClient\Query\QueryConverter.cs (3)
1877
if (mc.Method.
IsStatic
) {
1929
&& !mc.Method.
IsStatic
2320
return mc.Method.
IsStatic
&& mc.Method.DeclaringType == typeof(DataManipulation);
SqlClient\Query\SqlFormatter.cs (1)
1384
if (mc.Method.
IsStatic
) {
SqlClient\Query\SqlMethodCallConverter.cs (16)
169
if(mc.Method.
IsStatic
178
if (mc.Method.
IsStatic
&& mc.Method.Name == "Compare" && mc.Method.ReturnType == typeof(int)) {
185
if (!mc.Method.
IsStatic
) {
215
if (mc.Method.
IsStatic
&& mc.Method.DeclaringType == typeof(SqlMethods)) {
244
if (!mc.Method.
IsStatic
&& mc.Method.DeclaringType == typeof(DateTime)) {
268
if (!mc.Method.
IsStatic
&& mc.Method.DeclaringType == typeof(DateTimeOffset)) {
293
if (!mc.Method.
IsStatic
&& mc.Method.DeclaringType == typeof(TimeSpan)) {
307
if (mc.Method.
IsStatic
&& mc.Method.DeclaringType == typeof(Convert) && mc.Arguments.Count == 1) {
332
if (mc.Method.
IsStatic
) {
364
if (mc.Method.
IsStatic
) {
422
if (mc.Method.
IsStatic
&& mc.Method.DeclaringType == typeof(Math)) {
484
return call.Method.
IsStatic
&&
490
return mc.Method.
IsStatic
&&
496
if (mc.Method.
IsStatic
&&
906
if (mc.Method.
IsStatic
) {
1393
if (mc.Method.
IsStatic
) {
SqlClient\Reader\ObjectReaderCompiler.cs (1)
929
return (mi.
IsStatic
|| mi.DeclaringType.IsValueType) ? OpCodes.Call : OpCodes.Callvirt;
System.Data.Services (1)
System\Data\Services\DataServiceConfiguration.cs (1)
959
Debug.Assert(method.
IsStatic
, "method.IsStatic");
System.Data.Services.Client (6)
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (6)
249
if (visited.Method.
IsStatic
&& visited.Method.Name.StartsWith("op_", StringComparison.Ordinal))
335
if (visited.Method.
IsStatic
&& visited.Method.Name == "Equals" && visited.Arguments.Count > 1)
344
if (!visited.Method.
IsStatic
&& visited.Method.Name == "Equals" && visited.Arguments.Count > 0)
353
if (visited.Method.
IsStatic
&& visited.Method.Name == "CompareString" && visited.Method.DeclaringType.FullName == "Microsoft.VisualBasic.CompilerServices.Operators")
362
if (!visited.Method.
IsStatic
&& visited.Method.Name == "CompareTo" && visited.Arguments.Count == 1 && visited.Method.ReturnType == typeof(int))
371
if (visited.Method.
IsStatic
&& visited.Method.Name == "Compare" && visited.Arguments.Count > 1 && visited.Method.ReturnType == typeof(int))
System.Data.SqlXml (1)
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (1)
3370
if (!extFunc.Method.
IsStatic
) {
System.Management (1)
Instrumentation\SchemaMapping.cs (1)
232
if(null == mi || mi.
IsStatic
)
System.Runtime.Serialization (2)
System\Runtime\Serialization\CodeGenerator.cs (2)
640
else if (methodInfo.
IsStatic
)
1585
if (thisObj != null && !methodInfo.
IsStatic
)
System.ServiceModel (1)
System\ServiceModel\Dispatcher\CodeGenerator.cs (1)
262
else if (methodInfo.
IsStatic
)
System.Web (5)
Cache\OutputCache.cs (1)
305
if (!substBlock.Callback.Method.
IsStatic
)
HttpCachePolicy.cs (1)
422
|| !info.handler.Method.
IsStatic
) {
parent\DataAnnotations\DataAnnotations\LocalizableString.cs (1)
126
if (getter == null || !(getter.IsPublic && getter.
IsStatic
)) {
UI\WebControls\ObjectDataSourceView.cs (1)
1631
if (method.MethodInfo.
IsStatic
) {
Util\QueryableUtility.cs (1)
13
if (call.Method.
IsStatic
&& call.Method.DeclaringType == typeof(Queryable)) {
System.Web.Extensions (3)
Script\Services\WebServiceMethodData.cs (1)
111
return _methodInfo.
IsStatic
;
UI\WebControls\Expressions\MethodExpression.cs (1)
125
if(!method.
IsStatic
) {
UI\WebControls\LinqDataSourceView.cs (1)
712
return ((propertyGetter != null) && propertyGetter.
IsStatic
);
System.Web.Services (2)
System\Web\Services\Protocols\LogicalMethodInfo.cs (1)
67
if (methodInfo.
IsStatic
) throw new InvalidOperationException(Res.GetString(Res.WebMethodStatic, methodInfo.Name));
System\Web\Services\Protocols\PatternMatcher.cs (1)
166
if (getMethod.
IsStatic
)
System.Workflow.Activities (10)
Rules\Executor.cs (2)
113
if (!propertyInfo.GetGetMethod(true).
IsStatic
&& targetObject == null)
139
if (!propertyInfo.GetSetMethod(true).
IsStatic
&& targetObject == null)
Rules\Expressions.cs (1)
1524
if (!mi.
IsStatic
&& target == null)
Rules\Parser\Parser.cs (2)
1635
if (accessors[i].
IsStatic
)
1694
if (mi.
IsStatic
)
Rules\RuleValidation.cs (5)
180
Debug.Assert(method.
IsStatic
, "Expected static method as an extension method");
323
Debug.Assert(method.
IsStatic
, "Expected static method as an lifted method");
2297
accessorMethod.DeclaringType.Assembly, RuleValidation.IsPrivate(accessorMethod), RuleValidation.IsInternal(accessorMethod), accessorMethod.
IsStatic
);
3252
if (constructor.
IsStatic
) // skip static constructors
3399
if ((mi.
IsStatic
) && !(mi.IsGenericMethod) && (IsMarkedExtension(mi)))
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (2)
715
isStatic = (memberInfo as MethodBase).
IsStatic
;
739
isStatic = accessorMethod.
IsStatic
;
System.WorkflowServices (2)
System\Workflow\Activities\ContractType.cs (2)
548
isStatic = (memberInfo as MethodBase).
IsStatic
;
571
isStatic = accessorMethod.
IsStatic
;
System.Xml (1)
System\Xml\Serialization\Models.cs (1)
207
if (getMethod.
IsStatic
) return false;