CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: Geir-Tore Lindsve
C#
public void Reminder()
{
    var forever = true;
    while(forever)
    {
        Console.WriteLine("Airport, airplanes, Volcano, Iceland, Ash");
    }
}
by Geir-Tore Lindsve   April 21, 2010 @ 4:34am
Tags:
155 Views
no comments
 
C#
[ContextAction(Group = "C#", Name = "ConvertSpacesToUnderscore", Description = "Adds context action to convert spaces in method names to underscore")]
public class ConvertSpacesToUnderscore : BulbItemImpl, IContextAction
{
    readonly ICSharpContextActionDataProvider _provider;
 
    public ConvertSpacesToUnderscore(ICSharpContextActionDataProvider provider)
    {
        _provider = provider;
    }
by Geir-Tore Lindsve   February 03, 2010 @ 1:05am
513 Views
no comments
 
C#
Bind<IFoobar>().To<Foo>().Only(When.Context.Variable("foobar").EqualTo("foo"));
Bind<IFoobar>().To<Bar>().Only(When.Context.Variable("foobar").EqualTo("bar"));
 
var foobar = kernel.Get<IFoobar>(With.Parameters.Variable("foobar", "foo"));
by Geir-Tore Lindsve   January 08, 2010 @ 1:29am
Tags: ninject
271 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate