public void Load( MethodEmitter method ) { if ( m_Field != null ) { method.LoadArgument( 0 ); method.LoadField( m_Field ); } else if ( m_Value == null ) { method.LoadNull( m_Type ); } else { if ( m_Value is int ) method.Load( (int) m_Value ); else if ( m_Value is long ) method.Load( (long) m_Value ); else if ( m_Value is float ) method.Load( (float) m_Value ); else if ( m_Value is double ) method.Load( (double) m_Value ); else if ( m_Value is char ) method.Load( (char) m_Value ); else if ( m_Value is bool ) method.Load( (bool) m_Value ); else if ( m_Value is string ) method.Load( (string) m_Value ); else if ( m_Value is Enum ) method.Load( (Enum) m_Value ); else throw new InvalidOperationException( "Unrecognized comparison value." ); } }
public void Load(MethodEmitter method) { if (m_Field != null) { method.LoadArgument(0); method.LoadField(m_Field); } else if (m_Value == null) { method.LoadNull(m_Type); } else { if (m_Value is int) { method.Load((int)m_Value); } else if (m_Value is long) { method.Load((long)m_Value); } else if (m_Value is float) { method.Load((float)m_Value); } else if (m_Value is double) { method.Load((double)m_Value); } else if (m_Value is char) { method.Load((char)m_Value); } else if (m_Value is bool) { method.Load((bool)m_Value); } else if (m_Value is string) { method.Load((string)m_Value); } else if (m_Value is Enum) { method.Load((Enum)m_Value); } else if (m_Value is uint) { method.Load((long)m_Value); } else { throw new InvalidOperationException("Unrecognized comparison value."); } } }
public void Load(MethodEmitter method) { if (Field != null) { method.LoadArgument(0); method.LoadField(Field); } else if (Value == null) { method.LoadNull(Type); } else { if (Value is int i) { method.Load(i); } else if (Value is long l) { method.Load(l); } else if (Value is float f) { method.Load(f); } else if (Value is double d) { method.Load(d); } else if (Value is char c) { method.Load(c); } else if (Value is bool b) { method.Load(b); } else if (Value is string s) { method.Load(s); } else if (Value is Enum e) { method.Load(e); } else { throw new InvalidOperationException("Unrecognized comparison value."); } } }
public void Load(MethodEmitter method) { if (m_Field != null) { method.LoadArgument(0); method.LoadField(m_Field); } else if (m_Value == null) { method.LoadNull(m_Type); } else { if (m_Value is int i) { method.Load(i); } else if (m_Value is long lValue) { method.Load(lValue); } else if (m_Value is float fValue) { method.Load(fValue); } else if (m_Value is double dValue) { method.Load(dValue); } else if (m_Value is char cValue) { method.Load(cValue); } else if (m_Value is bool bValue) { method.Load(bValue); } else if (m_Value is string sValue) { method.Load(sValue); } else if (m_Value is Enum eValue) { method.Load(eValue); } else { throw new InvalidOperationException("Unrecognized comparison value."); } } }