public IDisposable BeginEmitCommandsClass(Type type)
 {
     return(helper.BeginEmitBlock(string.Format(
                                      "public class {0} : DependencyObject",
                                      type.Name)));
 }
 public IDisposable BeginEmitSessionClass(Type type)
 {
     //WriteLine("[TypeDescriptionProvider(typeof(SessionTypeDescriptionProvider<{0}>))]", type.Name);
     return(helper.BeginEmitBlock(
                string.Format("public class {0} : {1}", type.Name, type.FullName)));
 }