![]() To build everything up piecemeal as you suggest I would write something like the code below. Also, I am interested in a way that takes performance into account as well. I have read all the documentation that comes with the June release of the CTP several times, and as I have mentioned I am lost in the seemingly endless combinations of various constructors and methods. Endless methods and constructors in all kinds of different objects like WithChanges, UpdateDocument, methods on the various Syntax objects, ParseCompilationUnit, etc.īasically, I want to build this up in an incremental fashion with a distinct object at each step that I could print out to the console for example, not one big statement that creates this whole thing in one line. The problem I am having with this is there seems to be a gazillion ways you could theoretically go about this, or at least incorrectly conclude you could go about this. Step #3: Add a new method to this class called MyMethod. Step #2: Add a new class to this namespace called M圜lass. Printing out the current object should look like this at this point: namespace MyNamespace ![]() ![]() Step #1: Add a new namespace called MyNamespace. You can start with any object you like and use any intermediate objects you like as long as the resulting object is an IDocument which represents the complete class at the end. I would like to build up a new IDocument object step by step using the following class as a specific example.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |