コード例 #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));
 }
コード例 #3
0
        /// <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);
        }
コード例 #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);
        }
コード例 #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));
 }
コード例 #6
0
 public bool Equals(ParameterToken obj)
 {
     return (obj.m_tkParameter == this.m_tkParameter);
 }
コード例 #7
0
ファイル: parameterbuilder.cs プロジェクト: ArildF/masters
 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));
 }
コード例 #8
0
 public bool Equals(ParameterToken obj)
 {
     return(default(bool));
 }
コード例 #9
0
ファイル: ParameterToken.cs プロジェクト: alisci01/cs2cpp
 public bool Equals(ParameterToken obj)
 {
     return(obj.m_tkParameter == m_tkParameter);
 }
 public bool Equals(ParameterToken obj)
 {
   return default(bool);
 }
コード例 #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);
コード例 #12
0
ファイル: ParameterToken.cs プロジェクト: runefs/Marvin
		public bool Equals (ParameterToken obj)
		{
			return (this.tokValue == obj.tokValue);
		}
コード例 #13
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)
 {
     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);
コード例 #15
0
 static ParameterToken()
 {
     Empty = new ParameterToken();
 }
コード例 #16
0
 static ParameterToken()
 {
     Empty = new ParameterToken();
 }
コード例 #17
0
 public bool Equals(ParameterToken obj)
 {
     return obj.m_tkParameter == m_tkParameter;
 }
コード例 #18
0
ファイル: ParameterToken.cs プロジェクト: PlumpMath/CIL2Java
 /// <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();
 }