public static Compare ( |
||
firstType | ||
secondType | ||
리턴 | bool |
public static bool MatchParameter(ParameterInfo firstParameter, ParameterInfo secondParameter) { var firstParameterType = firstParameter.ParameterType; var secondParameterType = secondParameter.ParameterType; return(ReferenceEquals(firstParameterType, secondParameterType) || TypeComparer.Compare(firstParameterType, secondParameterType)); }
public static bool IsMatchedTo(this PropertyInfo firstProperty, PropertyInfo secondProperty) { if (!firstProperty.Name.Equals(secondProperty.Name) || !MatchAccessModifier(firstProperty, secondProperty)) { return(false); } return(ReferenceEquals(firstProperty.PropertyType, secondProperty.PropertyType) || TypeComparer.Compare(firstProperty.PropertyType, secondProperty.PropertyType)); }
public static bool MatchReturnType(Type firstReturnType, Type secondReturnType) { return(firstReturnType.Name.Equals(secondReturnType.Name) || TypeComparer.Compare(firstReturnType, secondReturnType)); }