These are sanitized examples shared at a conference.
They are starting points, not rules.
Adapt them to your workflow and projects.
| namespace MyWorkflow | |
| { | |
| public sealed partial class MyDesigner | |
| { | |
| static MyDesigner() | |
| { | |
| var hashTable = new Hashtable(); | |
| using (var xmlReader = XmlReader.Create(new StringReader(Resources.DefaultColorResources))) | |
| { |
| namespace EventManager | |
| { | |
| public delegate void DispatchDelegate(object sender, object source, object target, object data); | |
| public class Dispatcher | |
| { | |
| public event DispatchDelegate OnDispatch; | |
| public void Dispatch(object source, object target, object data) | |
| { |
| // SymSpell: 1000x faster through Symmetric Delete spelling correction algorithm | |
| // | |
| // The Symmetric Delete spelling correction algorithm reduces the complexity of edit candidate generation and dictionary lookup | |
| // for a given Damerau-Levenshtein distance. It is three orders of magnitude faster and language independent. | |
| // Opposite to other algorithms only deletes are required, no transposes + replaces + inserts. | |
| // Transposes + replaces + inserts of the input term are transformed into deletes of the dictionary term. | |
| // Replaces and inserts are expensive and language dependent: e.g. Chinese has 70,000 Unicode Han characters! | |
| // | |
| // Copyright (C) 2012 Wolf Garbe, FAROO Limited | |
| // Version: 1.6 |