private ShouldSkip ( bool keepPublicApi, bool hidePrivateApi ) : bool | ||
keepPublicApi | bool | |
hidePrivateApi | bool | |
return | bool |
internal bool ShouldSkip(bool keepPublicApi, bool hidePrivateApi)
{
if (typeKey.TypeDefinition.IsPublic &&
((propertyDefinition.GetMethod != null &&
propertyDefinition.GetMethod.IsPublic) ||
(propertyDefinition.SetMethod != null &&
propertyDefinition.SetMethod.IsPublic)))
return keepPublicApi;
return !hidePrivateApi;
}
public bool ShouldSkip(PropertyKey prop, InheritMap map, bool keepPublicApi, bool hidePrivateApi) { if (ShouldSkip(prop.TypeKey, TypeSkipFlags.SkipProperty, map, hidePrivateApi)) { return(true); } if (skipProperties.IsMatch(prop, map)) { return(true); } return(prop.ShouldSkip(keepPublicApi, hidePrivateApi)); }