Blackmire.CppHeaderWalker.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            return cb.ToString();
        }

Usage Example

示例#1
0
    private void ProcessInput(object sender)
    {
      var tree = CSharpSyntaxTree.ParseText(((TextBox) sender).Text);
      var compilation = CSharpCompilation.Create("blackmire")
        .WithOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary))
        .WithReferences(MetadataReference.CreateFromFile(typeof (Int32).Assembly.Location))
        .AddSyntaxTrees(tree);
      var model = compilation.GetSemanticModel(tree, true);
      var settings = new ConversionSettings();
      var hw = new CppHeaderWalker(compilation, model, settings);
      hw.Visit(tree.GetRoot());
      HeaderBox.Text = hw.ToString();

      var iw = new CppImplWalker(compilation, model, settings);
      iw.Visit(tree.GetRoot());
      CppBox.Text = iw.ToString();
    }
All Usage Examples Of Blackmire.CppHeaderWalker::ToString