C# Class SpecAid.Helper.PropertyInfoHelper

ファイルを表示 Open project: ITAGroup/SpecAid

Public Methods

Method Description
GetCaseInsensitivePropertyInfo ( Type targetType, string columnName ) : PropertyInfo

Returns the PropertyInfo so I don't have to look it back up in the "Do" method 1.) Tries to find the property by exact name first 2.) Tries to find the property using a case insensitive compare 3.) Checks nested interfaces using a case insensitive compare

GetIndexerPropertyInfo ( Type targetType, string columnName ) : PropertyInfo

Method Details

GetCaseInsensitivePropertyInfo() public static method

Returns the PropertyInfo so I don't have to look it back up in the "Do" method 1.) Tries to find the property by exact name first 2.) Tries to find the property using a case insensitive compare 3.) Checks nested interfaces using a case insensitive compare
public static GetCaseInsensitivePropertyInfo ( Type targetType, string columnName ) : PropertyInfo
targetType System.Type
columnName string
return System.Reflection.PropertyInfo

GetIndexerPropertyInfo() public static method

public static GetIndexerPropertyInfo ( Type targetType, string columnName ) : PropertyInfo
targetType System.Type
columnName string
return System.Reflection.PropertyInfo