Subtract() public method

public Subtract ( CppModifiers modifier ) : CppType
modifier CppModifiers
return CppType
Example #1
0
        // Removes the modifiers on the passed instance from this instance
        public CppType Subtract(CppType type)
        {
            if (internalModifiers == null)
            {
                return(this);
            }

            CppType current = this;

            foreach (var modifier in ((IEnumerable <CppModifiers>)type.Modifiers).Reverse())
            {
                current = current.Subtract(modifier);
            }

            return(current);
        }