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
class A<T> | |
{ | |
public virtual T X() { return default(T); } | |
} | |
class B : A<int> | |
{ | |
public override int X() | |
{ | |
Func<int> x = () => base.X(); |
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
var configurator = ParserFactory.Configure<object>(); | |
var price = configurator.CreateTerminal("[0-9]+,[0-9]* ", s => double.Parse(s.Substring(0, s.Length - 1))); | |
var unknownText = configurator.CreateTerminal("((-|[A-Öa-ö])[^\n]+)|[0-9]+,[0-9]*kr[^\n]*\n", s => s); | |
var reciept = configurator.CreateNonTerminal(); | |
var recieptLine = configurator.CreateNonTerminal(); | |
reciept.AddProduction(reciept, recieptLine); | |
reciept.AddProduction(recieptLine); | |
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
Stuff this into your start method | |
// Configure the Scheduler | |
ISchedulerFactory schedFact = new StdSchedulerFactory(); | |
// get a scheduler | |
IScheduler sched = schedFact.GetScheduler(); | |
sched.Start(); | |
Add to app config |
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
This counts the number of lines in CS files. | |
find . -name '*.php' | xargs wc -l |
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
[EditorBrowsable(EditorBrowsableState.Never)] | |
public interface IHideObjectMembers | |
{ | |
[EditorBrowsable(EditorBrowsableState.Never)] | |
Type GetType(); | |
[EditorBrowsable(EditorBrowsableState.Never)] | |
int GetHashCode(); | |
[EditorBrowsable(EditorBrowsableState.Never)] |