internal ParameterBuilder(MethodBuilder methodBuilder, int sequence, ParameterAttributes attributes, string strParamName) { this.m_iPosition = sequence; this.m_strParamName = strParamName; this.m_methodBuilder = methodBuilder; this.m_strParamName = strParamName; this.m_attributes = attributes; this.m_pdToken = new ParameterToken(TypeBuilder.SetParamInfo(this.m_methodBuilder.GetModuleBuilder().GetNativeHandle(), this.m_methodBuilder.GetToken().Token, sequence, attributes, strParamName)); }
/// <summary>Checks if the given object is an instance of ParameterToken and is equal to this instance.</summary> /// <returns>true if <paramref name="obj" /> is an instance of ParameterToken and equals the current instance; otherwise, false.</returns> /// <param name="obj">The object to compare to this object. </param> public override bool Equals(object obj) { bool flag = obj is ParameterToken; if (flag) { ParameterToken parameterToken = (ParameterToken)obj; flag = (this.tokValue == parameterToken.tokValue); } return(flag); }
/// <summary> /// </summary> public override bool Equals(object obj) { bool res = obj is ParameterToken; if (res) { ParameterToken that = (ParameterToken)obj; res = (this.tokValue == that.tokValue); } return(res); }
internal ParameterBuilder( MethodBuilder methodBuilder, int sequence, ParameterAttributes attributes, String strParamName) // can be NULL string { m_iPosition = sequence; m_strParamName = strParamName; m_methodBuilder = methodBuilder; m_strParamName = strParamName; m_attributes = attributes; m_pdToken = new ParameterToken(TypeBuilder.InternalSetParamInfo( m_methodBuilder.GetModule(), m_methodBuilder.GetToken().Token, sequence, attributes, strParamName)); }
public bool Equals(ParameterToken obj) { return (obj.m_tkParameter == this.m_tkParameter); }
internal ParameterBuilder( MethodBuilder methodBuilder, int sequence, ParameterAttributes attributes, String strParamName) // can be NULL string { m_iPosition = sequence; m_strParamName = strParamName; m_methodBuilder = methodBuilder; m_strParamName = strParamName; m_attributes = attributes; m_pdToken = new ParameterToken( TypeBuilder.InternalSetParamInfo( m_methodBuilder.GetModule(), m_methodBuilder.GetToken().Token, sequence, attributes, strParamName)); }
public bool Equals(ParameterToken obj) { return(default(bool)); }
public bool Equals(ParameterToken obj) { return(obj.m_tkParameter == m_tkParameter); }
public bool Equals(ParameterToken obj) { return default(bool); }
// // Summary: // Indicates whether the current instance is equal to the specified System.Reflection.Emit.ParameterToken. // // Parameters: // obj: // The System.Reflection.Emit.ParameterToken to compare to the current instance. // // Returns: // true if the value of obj is equal to the value of the current instance; otherwise, // false. extern public bool Equals(ParameterToken obj);
public bool Equals (ParameterToken obj) { return (this.tokValue == obj.tokValue); }
/// <summary>Indicates whether the current instance is equal to the specified <see cref="T:System.Reflection.Emit.ParameterToken" />.</summary> /// <returns>true if the value of <paramref name="obj" /> is equal to the value of the current instance; otherwise, false.</returns> /// <param name="obj">The <see cref="T:System.Reflection.Emit.ParameterToken" /> to compare to the current instance.</param> public bool Equals(ParameterToken obj) { return(this.tokValue == obj.tokValue); }
static ParameterToken() { Empty = new ParameterToken(); }
public bool Equals(ParameterToken obj) { return obj.m_tkParameter == m_tkParameter; }
/// <summary>Indicates whether the current instance is equal to the specified <see cref="T:System.Reflection.Emit.ParameterToken" />.</summary><returns>true if the value of <paramref name="obj" /> is equal to the value of the current instance; otherwise, false.</returns><param name="obj">The <see cref="T:System.Reflection.Emit.ParameterToken" /> to compare to the current instance.</param> public bool Equals(ParameterToken obj) { throw new NotImplementedException(); }