Created
March 28, 2012 21:37
-
-
Save mgroves/2230812 to your computer and use it in GitHub Desktop.
Intor to FireWeaver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| C:\zproj\CCC\FireWeaverExample\FireWeaverExample\bin\Debug>FireWeaver.Bootstrapper.exe FireWeaverExample.exe FireWeaverExample.exe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Firecracker; | |
| namespace FireWeaverExample | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var obj = new Dog(); | |
| obj.Bark(); | |
| } | |
| } | |
| public class Dog | |
| { | |
| public void Bark() | |
| { | |
| Console.WriteLine("Woof!"); | |
| } | |
| } | |
| [Replace(typeof(Dog))] | |
| public class Cat | |
| { | |
| public void Bark() | |
| { | |
| Console.WriteLine("Meow!"); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment