GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — CSharp-Feature-Example/Ver3.0/PartialMethods/Program.cs at main · ranbims/CSharp-Feature-Example Expand file tree/ Copy pathProgram.csMore file actions 24 lines (22 loc) · 729 Bytes / Copy pathProgram.csFile metadata and controls24 lines (22 loc) · 729 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 using System; /// <summary> /// A partial method has its signature defined in one part of a partial type, /// and its implementation defined in another part of the type. /// /// Partial methods enable class designers to provide method hooks, /// similar to event handlers, that developers may decide to implement or not. /// /// If the developer does not supply an implementation, the compiler removes the signature at compile time. /// </summary> namespace PartialMethods { partial class Program { partial void OnSomethingHappened(String s); static void Main(string[] args) { Program p = new Program(); p.OnSomethingHappened("What happend?"); } } } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |