コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CodegenResult"/> class.
 /// </summary>
 /// <param name='environment'>The environment that describes how the code should be written.</param>
 /// <exception cref="ArgumentNullException">If the given environment is not effective.</exception>
 protected CodegenResultBase(ICodegenEnvironment environment)
 {
     if (environment == null) {
         throw new ArgumentNullException ("environment");
     }
     Contract.EndContractBlock ();
     Contract.Ensures (this.environment != null);
     Contract.Ensures (this.environment == environment);
     this.environment = environment;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CodegenResult"/> class.
 /// </summary>
 /// <param name='environment'>The environment that describes how the code should be written.</param>
 /// <exception cref="ArgumentNullException">If the given environment is not effective.</exception>
 protected CodegenResultBase(ICodegenEnvironment environment)
 {
     if (environment == null)
     {
         throw new ArgumentNullException("environment");
     }
     Contract.EndContractBlock();
     Contract.Ensures(this.environment != null);
     Contract.Ensures(this.environment == environment);
     this.environment = environment;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CodegenResult"/> class.
 /// </summary>
 /// <param name='environment'>The environment that describes how the code should be written.</param>
 /// <exception cref="ArgumentNullException">If the given environment is not effective.</exception>
 protected OOCodegenResultBase(ICodegenEnvironment environment)
     : base(environment)
 {
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CodegenResult"/> class.
 /// </summary>
 /// <param name='environment'>The environment that describes how the code should be written.</param>
 /// <exception cref="ArgumentNullException">If the given environment is not effective.</exception>
 protected OOCodegenResultBase(ICodegenEnvironment environment) : base(environment)
 {
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CSharpCodegenResult"/> class where the result
 /// of a code generator process can be stored and emitted.
 /// </summary>
 /// <param name='environment'>The environment that describes how the code should be written.</param>
 /// <exception cref="ArgumentNullException">If the given environment is not effective.</exception>
 protected CSharpCodegenResult(ICodegenEnvironment environment) : base(environment)
 {
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CSharpCodegenResult"/> class where the result
 /// of a code generator process can be stored and emitted.
 /// </summary>
 /// <param name='environment'>The environment that describes how the code should be written.</param>
 /// <exception cref="ArgumentNullException">If the given environment is not effective.</exception>
 protected CSharpCodegenResult(ICodegenEnvironment environment)
     : base(environment)
 {
 }