Esempio n. 1
0
 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));
 }
 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);
        }
Esempio n. 4
0
        /// <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);
        }
Esempio n. 5
0
 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);
 }
Esempio n. 7
0
 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));
 }
Esempio n. 8
0
 public bool Equals(ParameterToken obj)
 {
     return(default(bool));
 }
Esempio n. 9
0
 public bool Equals(ParameterToken obj)
 {
     return(obj.m_tkParameter == m_tkParameter);
 }
 public bool Equals(ParameterToken obj)
 {
   return default(bool);
 }
Esempio n. 11
0
 //
 // 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);
Esempio n. 12
0
		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);
 }
 //
 // 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);
 static ParameterToken()
 {
     Empty = new ParameterToken();
 }
 static ParameterToken()
 {
     Empty = new ParameterToken();
 }
 public bool Equals(ParameterToken obj)
 {
     return obj.m_tkParameter == m_tkParameter;
 }
Esempio n. 18
0
 /// <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();
 }