ivandrofly

instance vs static class il-code

Jul 31st, 2023
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. static class il-code
  2. =====
  3. .class private auto ansi beforefieldinit
  4.   RabinKarpSubstringSearch.ClassTwo
  5.     extends [System.Runtime]System.Object
  6. {
  7.  
  8.   .field public static literal string Name = "foobar"
  9.  
  10.   .method public hidebysig specialname rtspecialname instance void
  11.     .ctor() cil managed
  12.   {
  13.     .maxstack 8
  14.  
  15.     IL_0000: ldarg.0      // this
  16.     IL_0001: call         instance void [System.Runtime]System.Object::.ctor()
  17.     IL_0006: ret
  18.  
  19.   } // end of method ClassTwo::.ctor
  20. } // end of class RabinKarpSubstringSearch.ClassTwo
  21.  
  22.  
  23. instance class il-code
  24. =============
  25. .class private abstract sealed auto ansi beforefieldinit
  26.   RabinKarpSubstringSearch.ClassOne
  27.     extends [System.Runtime]System.Object
  28. {
  29.  
  30.   .field public static literal string Name = "foobar"
  31. } // end of class RabinKarpSubstringSearch.ClassOne
  32.  
Add Comment
Please, Sign In to add comment