dotemacs

My Emacs configuration
git clone git://git.entf.net/dotemacs
Log | Files | Refs | LICENSE

this-fontification.cs (667B)


      1 using System;
      2 
      3 namespace DemoSpace
      4 {
      5     public class DemoClass
      6     {
      7         private InnerClass _innerClass;
      8 
      9         public DemoClass()
     10         {
     11             // note usage of plain "this".
     12             _innerClass = new InnerClass(this);
     13         }
     14     }
     15 
     16     public static class DemoClassExtensions
     17     {
     18         public static bool ExampleWithMemberType(this DemoClass instance, string foo)
     19         {
     20             // fontifies parameters incorrectly
     21             return false;
     22         }
     23 
     24         public static bool ExampleWithBulitInType(this string instance, int bar)
     25         {
     26             // fontifies parameters correctly
     27             return true;
     28         }
     29     }
     30 }