コード例 #1
0
 /// <summary>
 /// Creates a new instance of <see cref="CodeTranslationOptions"/> with the <paramref name="autoResolveReferences"/> and
 /// <paramref name="nameHandler"/> provided.
 /// </summary>
 /// <param name="autoResolveReferences">Whether the <see cref="CodeTranslationOptions"/>
 /// should resolve import references when types are encountered.</param>
 /// <param name="nameHandler">A <see cref="ICodeGeneratorNameHandler"/> implementation instance
 /// which processes the <see cref="IDeclaration"/> names before translation into
 /// Code.</param>
 public CodeTranslationOptions(bool autoResolveReferences, ICodeGeneratorNameHandler nameHandler)
 {
     if (nameHandler == null)
     {
         throw new ArgumentNullException("nameHandler");
     }
     this.autoResolveReferences = autoResolveReferences;
     this.nameHandler           = nameHandler;
     this.importList            = new Collection <string>();
 }
コード例 #2
0
 /// <summary>
 /// Creates a new <see cref="IntermediateCodeTranslatorOptions"/> instance
 /// which resolves references automatically based upon <paramref name="autoResolveReferences"/>,
 /// translates the names by <paramref name="nameHandler"/>,
 /// and formats the code according to <paramref name="formatter"/>.
 /// </summary>
 /// <param name="autoResolveReferences">Whether or not the
 /// <see cref="IIntermediateCodeTranslator"/> should resolve the references itself.</param>
 /// <param name="nameHandler">A <see cref="ICodeGeneratorNameHandler"/> implementation instance
 /// which processes the <see cref="IDeclaration"/> names before translation into
 /// Code.</param>
 /// <param name="formatter">Intermediary by which the code is formatted.</param>
 public IntermediateCodeTranslatorOptions(bool autoResolveReferences, ICodeGeneratorNameHandler nameHandler, IIntermediateCodeTranslatorFormatter formatter)
     : base(autoResolveReferences, nameHandler)
 {
     this.formatter = formatter;
 }
コード例 #3
0
 /// <summary>
 /// Creates a new <see cref="IntermediateCodeTranslatorOptions"/> instance
 /// which resolves references automatically based upon <paramref name="autoResolveReferences"/>
 /// and translates the names by <paramref name="nameHandler"/>,
 /// </summary>
 /// <param name="autoResolveReferences">Whether or not the
 /// <see cref="IIntermediateCodeTranslator"/> should resolve the references itself.</param>
 /// <param name="nameHandler">A <see cref="ICodeGeneratorNameHandler"/> implementation instance
 /// which processes the <see cref="IDeclaration"/> names before translation into
 /// Code.</param>
 public IntermediateCodeTranslatorOptions(bool autoResolveReferences, ICodeGeneratorNameHandler nameHandler)
     : base(autoResolveReferences, nameHandler)
 {
 }
コード例 #4
0
 /// <summary>
 /// Creates a new <see cref="IntermediateCodeTranslatorOptions"/> instance
 /// which translates the names by <paramref name="nameHandler"/>,
 /// and formats the code according to <paramref name="formatter"/>.
 /// </summary>
 /// <param name="nameHandler">A <see cref="ICodeGeneratorNameHandler"/> implementation instance
 /// which processes the <see cref="IDeclaration"/> names before translation into
 /// Code.</param>
 /// <param name="formatter">Intermediary by which the code is formatted.</param>
 public IntermediateCodeTranslatorOptions(ICodeGeneratorNameHandler nameHandler, IIntermediateCodeTranslatorFormatter formatter)
     : base(false, nameHandler)
 {
     this.formatter = formatter;
 }
コード例 #5
0
 /// <summary>
 /// Creates a new <see cref="IntermediateCodeTranslatorOptions"/> instance
 /// which translates the names by <paramref name="nameHandler"/>.
 /// </summary>
 /// <param name="nameHandler">A <see cref="ICodeGeneratorNameHandler"/> implementation instance
 /// which processes the <see cref="IDeclaration"/> names before translation into
 /// Code.</param>
 public IntermediateCodeTranslatorOptions(ICodeGeneratorNameHandler nameHandler)
     : base(false, nameHandler)
 {
 }
コード例 #6
0
 /// <summary>
 /// Creates a new instance of <see cref="CodeDOMTranslationOptions"/> with the <paramref name="autoResolveReferences"/> and
 /// <paramref name="nameHandler"/> provided.
 /// </summary>
 /// <param name="autoResolveReferences">Whether the <see cref="CodeDOMTranslationOptions"/>
 /// should resolve import references when types are encountered.</param>
 /// <param name="nameHandler">A <see cref="ICodeGeneratorNameHandler"/> implementation instance
 /// which processes the <see cref="IDeclaration"/> names before translation into
 /// CodeDOM.</param>
 public CodeDOMTranslationOptions(bool autoResolveReferences, ICodeGeneratorNameHandler nameHandler)
     : base(autoResolveReferences, nameHandler)
 {
 }