Obfuscar.PropertyKey.ShouldSkip C# (CSharp) Method

ShouldSkip() private method

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;
        }

Usage Example

Exemplo n.º 1
0
        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));
        }