Beispiel #1
0
        public override bool Equals(object obj)
        {
            if (obj is DreamValue)
            {
                DreamValue b = (DreamValue)obj;

                if (Type == DreamValueType.DreamPath && b.Type == DreamValueType.DreamPath)
                {
                    return(GetValueAsPath().Equals(b.GetValueAsPath()));
                }
                else if (Value != null)
                {
                    return(Value.Equals(b.Value));
                }
                else
                {
                    return(b.Value == null);
                }
            }
            else
            {
                return(base.Equals(obj));
            }
        }
 public DreamGlobalVariable(DreamValue value)
 {
     Value = value;
 }