Schemin.AST.ScheminString.Equivalent C# (CSharp) Method

Equivalent() public method

public Equivalent ( IScheminType type ) : bool
type IScheminType
return bool
        public bool Equivalent(IScheminType type)
        {
            if ((type as ScheminString) == null)
            {
                return false;
            }

            ScheminString temp = (ScheminString) type;
            if (this.Value == temp.Value)
            {
                return true;
            }

            return false;
        }