// 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 Property.
/// </summary>
-#if NET_2_0
[ComVisible (true)]
-#endif
[Serializable]
public struct PropertyToken {
internal int tokValue;
- public static readonly PropertyToken Empty;
-
-
- static PropertyToken ()
- {
- Empty = new PropertyToken ();
- }
-
+ public static readonly PropertyToken Empty = new PropertyToken ();
internal PropertyToken (int val)
{
return res;
}
-#if NET_2_0
public bool Equals (PropertyToken obj)
{
return (this.tokValue == obj.tokValue);
}
-#endif
+
+ public static bool operator == (PropertyToken a, PropertyToken b)
+ {
+ return Equals (a, b);
+ }
+
+ public static bool operator != (PropertyToken a, PropertyToken b)
+ {
+ return !Equals (a, b);
+ }
/// <summary>
/// Tests whether the given object is an instance of
}
+#endif