@@ -133,29 +133,23 @@ internal Operand(string opd)
133133 /// </summary>
134134 internal object Value { get ; private set ; }
135135
136- public string Parameter
137- {
138- get
139- {
136+ public string Parameter {
137+ get {
140138 return Value . ToString ( ) . TrimEnd ( ) ;
141139 }
142140 }
143141
144- internal double NumberValue
145- {
146- get
147- {
142+ internal double NumberValue {
143+ get {
148144 if ( Type == OperandType . BOOLEAN ) {
149145 return ( bool ) Value ? 1 : 0 ;
150146 }
151147 return ( double ) Value ;
152148 }
153149 }
154150 internal string StringValue { get { return Value . ToString ( ) ; } }
155- internal bool BooleanValue
156- {
157- get
158- {
151+ internal bool BooleanValue {
152+ get {
159153 if ( Type == OperandType . NUMBER ) {
160154 if ( Value is double ) {
161155 return ( double ) Value != 0 ;
@@ -226,8 +220,8 @@ public bool CanTransitionTo(OperandType operandType)
226220 if ( operandType == Type ) return true ;
227221 if ( Type == OperandType . ERROR ) return false ;
228222
229- if ( operandType == OperandType . STRING ) return true ;
230- if ( operandType == OperandType . NUMBER ) {
223+ if ( operandType == OperandType . STRING ) return true ;
224+ if ( operandType == OperandType . NUMBER ) {
231225 return IsNumber ( this . Value ) ;
232226 }
233227 if ( operandType == OperandType . DATE ) {
@@ -274,9 +268,9 @@ public static OperandType ConvertOperand(string opd)
274268 /// <returns></returns>
275269 public static bool IsBoolean ( object value )
276270 {
277- if ( value is Int16 || value is Int32 || value is Int64 ||
278- value is UInt16 || value is UInt32 || value is UInt64 ||
279- value is double || value is float || value is decimal ) {
271+ if ( value is Int16 || value is Int32 || value is Int64 ||
272+ value is UInt16 || value is UInt32 || value is UInt64 ||
273+ value is double || value is float || value is decimal ) {
280274 return true ;
281275 }
282276
0 commit comments