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