Пример #1
0
        public object Clone()
        {
            VariableFloat vf = new VariableFloat();

            vf.mIsVariable    = mIsVariable;
            vf.mStaticValue   = mStaticValue;
            vf.mVariableValue = mVariableValue;

            return(vf);
        }
Пример #2
0
        public override bool Equals(object obj)
        {
            VariableFloat vf = obj as VariableFloat;

            if (vf == null)
            {
                return(false);
            }

            if (vf.mIsVariable != mIsVariable)
            {
                return(false);
            }

            if (mIsVariable)
            {
                return(vf.mVariableValue == mVariableValue);
            }
            else
            {
                return(vf.mStaticValue == mStaticValue);
            }
        }
Пример #3
0
		public object Clone()
		{
			VariableFloat vf = new VariableFloat();
			vf.mIsVariable = mIsVariable;
			vf.mStaticValue = mStaticValue;
			vf.mVariableValue = mVariableValue;

			return vf;
		}