public override string GetDisplayName(MethodSemantics semantic)
 {
     var sb = new StringBuilder("Enhanced property");
     if (semantic == MethodSemantics.Setter) {
         sb.Append(" setter");
     }
     sb.Append(" with equality check");
     return sb.ToString();
 }
 public override MethodBodyTransformationOptions GetOptions(MetadataDeclaration originalTargetElement, MethodSemantics semantic)
 {
     return MethodBodyTransformationOptions.None;
 }
 public override string GetDisplayName(MethodSemantics semantic)
 {
     return "Logging Transformation";
 }
 public override string GetDisplayName( MethodSemantics semantic )
 {
     return "Implement Validation";
 }
 public override string GetDisplayName( MethodSemantics semantic )
 {
     return "Implement ICloneable";
 }
Esempio n. 6
0
 internal static void Read(PEReader buff, TableRow[] methSems)
 {
     Contract.Requires(buff != null);
     for (int i = 0; i < methSems.Length; i++)
         methSems[i] = new MethodSemantics(buff);
 }
Esempio n. 7
0
 internal void AddMethod(MethodSemantics meth)
 {
     if (tide == methods.Length)
     {
         MethodSemantics[] mTmp = methods;
         methods = new MethodSemantics[tide * 2];
         for (int i = 0; i < tide; i++)
         {
             methods[i] = mTmp[i];
         }
     }
     methods[tide++] = meth;
 }
 public override string GetDisplayName(MethodSemantics semantic)
 {
     var sb = new StringBuilder("Invokes PropertyChanged event");
     return sb.ToString();
 }
 public override string GetDisplayName(MethodSemantics semantic)
 {
     return "FastTrace";
 }