Created
September 20, 2009 03:09
-
-
Save miya2000/189691 to your computer and use it in GitHub Desktop.
This file contains 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
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() | |
; | |
} |
This file contains 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
//------------------------------------------------------------------------------ | |
// <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