Author: jbevain
Date: 2008-02-07 12:20:33 -0500 (Thu, 07 Feb 2008)
New Revision: 95158
Modified:
trunk/mcs/class/Mono.Cecil/ChangeLog
trunk/mcs/class/Mono.Cecil/Mono.Cecil/MethodDefinition.cs
Log:
2008-02-07 Jb Evain <[EMAIL PROTECTED]>
* Mono.Cecil/MethodDefinition.cs:
add last Is method for semantics property.
Modified: trunk/mcs/class/Mono.Cecil/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Cecil/ChangeLog 2008-02-07 17:20:04 UTC (rev
95157)
+++ trunk/mcs/class/Mono.Cecil/ChangeLog 2008-02-07 17:20:33 UTC (rev
95158)
@@ -1,3 +1,8 @@
+2008-02-07 Jb Evain <[EMAIL PROTECTED]>
+
+ * Mono.Cecil/MethodDefinition.cs:
+ add last Is method for semantics property.
+
2008-02-05 Jb Evain <[EMAIL PROTECTED]>
* Mono.Cecil/TypeDefinition.cs:
Modified: trunk/mcs/class/Mono.Cecil/Mono.Cecil/MethodDefinition.cs
===================================================================
--- trunk/mcs/class/Mono.Cecil/Mono.Cecil/MethodDefinition.cs 2008-02-07
17:20:04 UTC (rev 95157)
+++ trunk/mcs/class/Mono.Cecil/Mono.Cecil/MethodDefinition.cs 2008-02-07
17:20:33 UTC (rev 95158)
@@ -437,6 +437,69 @@
#endregion
+ #region MethodSemanticsAttributes
+ public bool IsSetter {
+ get { return (m_semAttrs &
MethodSemanticsAttributes.Setter) != 0; }
+ set {
+ if (value)
+ m_semAttrs |=
MethodSemanticsAttributes.Setter;
+ else
+ m_semAttrs &=
~MethodSemanticsAttributes.Setter;
+ }
+ }
+
+ public bool IsGetter {
+ get { return (m_semAttrs &
MethodSemanticsAttributes.Getter) != 0; }
+ set {
+ if (value)
+ m_semAttrs |=
MethodSemanticsAttributes.Getter;
+ else
+ m_semAttrs &=
~MethodSemanticsAttributes.Getter;
+ }
+ }
+
+ public bool IsOther {
+ get { return (m_semAttrs &
MethodSemanticsAttributes.Other) != 0; }
+ set {
+ if (value)
+ m_semAttrs |=
MethodSemanticsAttributes.Other;
+ else
+ m_semAttrs &=
~MethodSemanticsAttributes.Other;
+ }
+ }
+
+ public bool IsAddOn {
+ get { return (m_semAttrs &
MethodSemanticsAttributes.AddOn) != 0; }
+ set {
+ if (value)
+ m_semAttrs |=
MethodSemanticsAttributes.AddOn;
+ else
+ m_semAttrs &=
~MethodSemanticsAttributes.AddOn;
+ }
+ }
+
+ public bool IsRemoveOn {
+ get { return (m_semAttrs &
MethodSemanticsAttributes.RemoveOn) != 0; }
+ set {
+ if (value)
+ m_semAttrs |=
MethodSemanticsAttributes.RemoveOn;
+ else
+ m_semAttrs &=
~MethodSemanticsAttributes.RemoveOn;
+ }
+ }
+
+ public bool IsFire {
+ get { return (m_semAttrs &
MethodSemanticsAttributes.Fire) != 0; }
+ set {
+ if (value)
+ m_semAttrs |=
MethodSemanticsAttributes.Fire;
+ else
+ m_semAttrs &=
~MethodSemanticsAttributes.Fire;
+ }
+ }
+
+ #endregion
+
public bool IsConstructor {
get {
return this.IsRuntimeSpecialName &&
this.IsSpecialName &&
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches