// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !FULL_AOT_RUNTIME
+using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
/// <summary>
/// Represents the Token returned by the metadata to represent a String.
/// </summary>
+ [ComVisible (true)]
[Serializable]
public struct StringToken {
internal int tokValue;
- static StringToken ()
- {
- }
-
-
internal StringToken (int val)
{
tokValue = val;
}
-
-
/// <summary>
/// </summary>
public override bool Equals (object obj)
return res;
}
+ public bool Equals (StringToken obj)
+ {
+ return (this.tokValue == obj.tokValue);
+ }
+
+ public static bool operator == (StringToken a, StringToken b)
+ {
+ return Equals (a, b);
+ }
+
+ public static bool operator != (StringToken a, StringToken b)
+ {
+ return !Equals (a, b);
+ }
/// <summary>
/// Tests whether the given object is an instance of
}
+#endif