Skip to content

Instantly share code, notes, and snippets.

@mgroves
Created March 28, 2012 21:37
Show Gist options
  • Select an option

  • Save mgroves/2230812 to your computer and use it in GitHub Desktop.

Select an option

Save mgroves/2230812 to your computer and use it in GitHub Desktop.
Intor to FireWeaver
C:\zproj\CCC\FireWeaverExample\FireWeaverExample\bin\Debug>FireWeaver.Bootstrapper.exe FireWeaverExample.exe FireWeaverExample.exe
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