![]() |
#1 |
Участник
|
sumitax: Reading XML Documentation
Источник: http://sumitax.wordpress.com/2011/02...documentation/
============== In my current project, I created a Automation testing solution using Unit Test Framework (UTF) .For retreving XML documentation from method (which contains what is purpose of method and what are parameters name and type ) .Following is code to access the string under XML documentation: X++: static void SUMIReadClassmethod(Args _args) { SysDictClass dct; str Source ; Object objMethod; DictMethod dm; container conLines; TextBuffer textBuffer = new TextBuffer(); Set dictClassMethodSet ; SetEnumerator enum; SysDictMethod dictMethod; #SysBpCheck FreeText ft ; dct = new SysDictClass(ClassName2id(classnode.AOTname())); dictClassMethodSet = dct.methods(true, true, true); dictClassMethodSet.add(new SysDictMethod(UtilElementType::ClassInstanceMethod, (classnode.AOTname()), #MethodNameClassDeclaration)); enum = dictClassMethodSet.getEnumerator(); textbuffer = null; textBuffer = new TextBuffer(); while (enum.moveNext()) { dictMethod = enum.current(); textBuffer.appendText(dictMethod.xmlDocumentation()); } } ![]() Источник: http://sumitax.wordpress.com/2011/02...documentation/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|