System.Reflection.TypeInfo.GetDeclaredMethod C# (CSharp) Method

GetDeclaredMethod() public method

public GetDeclaredMethod ( string name ) : MethodInfo
name string
return MethodInfo
		public virtual MethodInfo GetDeclaredMethod (string name)
		{
			return GetMethod (name, declaredFlags);
		}

Usage Example

            public ReflectionNullabilityResolver()
            {
                nullableAnnotation = typeSymbolInfo.GetDeclaredProperty("NullableAnnotation") !.GetMethod;
                withoutNullable    = typeSymbolInfo.GetDeclaredMethod("WithNullableAnnotation");
                var nullableAnnotations = Enum.GetValues(withoutNullable.GetParameters()[0].ParameterType);

                annotatedValue      = nullableAnnotations.GetValue(2);
                nonValue            = nullableAnnotations.GetValue(0);
                stripValueParameter = new[] { nonValue };
            }
All Usage Examples Of System.Reflection.TypeInfo::GetDeclaredMethod