ComponentOne DataGrid for WPF and Silverlight
C1.WPF.DataGrid Namespace / CustomPropertyInfo Class / GetGetMethod Method / GetGetMethod(Boolean) Method
Indicates whether a non-public get accessor should be returned. true if a non-public accessor is to be returned; otherwise, false.

In This Topic
    GetGetMethod(Boolean) Method
    In This Topic
    When overridden in a derived class, returns the public or non-public get accessor for this property.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides Function GetGetMethod( _
       ByVal nonPublic As Boolean _
    ) As MethodInfo
    public override MethodInfo GetGetMethod( 
       bool nonPublic
    )

    Parameters

    nonPublic
    Indicates whether a non-public get accessor should be returned. true if a non-public accessor is to be returned; otherwise, false.

    Return Value

    A MethodInfo object representing the get accessor for this property, if nonPublic is true. Returns null if nonPublic is false and the get accessor is non-public, or if nonPublic is true but no get accessors exist.
    Exceptions
    ExceptionDescription
    The requested method is non-public and the caller does not have System.Security.Permissions.ReflectionPermission to reflect on this non-public method.
    See Also