Skip to content

Instantly share code, notes, and snippets.

@miya2000
Created September 20, 2009 03:09
Show Gist options
  • Save miya2000/189691 to your computer and use it in GitHub Desktop.
Save miya2000/189691 to your computer and use it in GitHub Desktop.
public CodeCompileUnit TestGenerate()
{
DeclarationCreator D = new DeclarationCreator();
return D
.Unit()
.Namespace("SuperCodeDom.Hogehoe")
.Import("System")
.Import("System.Linq")
.Type("Hoge")
.Type("Fuga")
.End()
.End()
.End()
.Namespace("Nsnsns")
.Type("Foo")
.End()
.End()
;
}
//------------------------------------------------------------------------------
// <auto-generated>
// このコードはツールによって生成されました。
// ランタイム バージョン:2.0.50727.4918
//
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
// コードが再生成されるときに損失したりします。
// </auto-generated>
//------------------------------------------------------------------------------
namespace SuperCodeDom.Hogehoe
{
using System;
using System.Linq;
public class Hoge
{
public class Fuga
{
}
}
}
namespace Nsnsns
{
public class Foo
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment