C# Класс SDKDocGenerator.NDocUtilities

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DetermineNDocNameLookupSignature ( MethodInfo info, string docId ) : string
DetermineNDocNameLookupSignature ( MethodInfoWrapper info ) : string
FindDocumentation ( AbstractWrapper wrapper ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, AbstractWrapper wrapper ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, ConstructorInfoWrapper info ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, EventInfoWrapper info ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, FieldInfoWrapper info ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, PropertyInfoWrapper info ) : System.Xml.Linq.XElement
FindDocumentation ( XElement>.IDictionary ndoc, TypeWrapper type ) : System.Xml.Linq.XElement
FindDocumentationPCLAsyncAlternative ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement

For methods that DO NOT end in "Async", checks for the Async version of the method with a similar signature, following the PCL/.Net45 Async pattern.

FindDocumentationUnityAsync ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement

For methods that end in "Async", checks for the method with a similar signature, but following the Unity Async pattern.

FindDocumentationUnityAsyncAlternative ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement

For methods that DO NOT end in "Async", checks for the Async version of the method with a similar signature, following the Unity Async pattern.

FindFieldDocumentation ( XElement>.IDictionary ndoc, TypeWrapper type, string fieldName ) : System.Xml.Linq.XElement
FindFieldDocumentation ( TypeWrapper type, string fieldName ) : System.Xml.Linq.XElement
FindParameterDocumentation ( System.Xml.Linq.XElement ndoc, string name ) : string
FindReturnDocumentation ( System.Xml.Linq.XElement ndoc ) : string
GenerateDocId ( string serviceName, string platform ) : string
GetDocumentationInstance ( string docId ) : XElement>.IDictionary
GetDocumentationInstance ( string serviceName, string platform ) : XElement>.IDictionary
LoadAssemblyDocumentationWithSamples ( string filePath, string samplesDir, string serviceName ) : System.Xml.Linq.XDocument
LoadDocumentation ( string assemblyName, string serviceName, string platform, SDKDocGenerator.GeneratorOptions options ) : void
PreprocessCodeBlocksToPreTags ( SDKDocGenerator.GeneratorOptions options, System.Xml.Linq.XDocument doc ) : void
TransformDocumentationToHTML ( System.Xml.Linq.XElement element, string rootNodeName, AbstractTypeProvider typeProvider, SDKDocGenerator.FrameworkVersion version ) : string

Приватные методы

Метод Описание
BuildExamplesMap ( List docNodes ) : string>.IDictionary
CreateNDocTable ( string filePath, string serviceName, SDKDocGenerator.GeneratorOptions options ) : XElement>.IDictionary
DetermineParameterName ( TypeWrapper parameterTypeInfo, StringBuilder parameters ) : void
ExtractCrefAttributeContent ( string nodeText, int crefAttrStart, int &crossRefTagEndIndex ) : string
ExtractHrefAttributeContent ( string nodeText, int hrefAttrStart, int &crossRefTagEndIndex ) : string
FindFirstNoWhitePosition ( string line ) : int
FindSampleCodePath ( string codeSampleRootDirectory, string relativePath ) : string
LeftJustifyCodeBlocks ( string codeBlock ) : string
ProcessExtraDoc ( XmlDocument sdkDocument, string>.IDictionary examplesMap ) : void

Описание методов

DetermineNDocNameLookupSignature() публичный статический Метод

public static DetermineNDocNameLookupSignature ( MethodInfo info, string docId ) : string
info System.Reflection.MethodInfo
docId string
Результат string

DetermineNDocNameLookupSignature() публичный статический Метод

public static DetermineNDocNameLookupSignature ( MethodInfoWrapper info ) : string
info MethodInfoWrapper
Результат string

FindDocumentation() публичный статический Метод

public static FindDocumentation ( AbstractWrapper wrapper ) : System.Xml.Linq.XElement
wrapper AbstractWrapper
Результат System.Xml.Linq.XElement

FindDocumentation() публичный статический Метод

public static FindDocumentation ( XElement>.IDictionary ndoc, AbstractWrapper wrapper ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
wrapper AbstractWrapper
Результат System.Xml.Linq.XElement

FindDocumentation() публичный статический Метод

public static FindDocumentation ( XElement>.IDictionary ndoc, ConstructorInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info ConstructorInfoWrapper
Результат System.Xml.Linq.XElement

FindDocumentation() публичный статический Метод

public static FindDocumentation ( XElement>.IDictionary ndoc, EventInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info EventInfoWrapper
Результат System.Xml.Linq.XElement

FindDocumentation() публичный статический Метод

public static FindDocumentation ( XElement>.IDictionary ndoc, FieldInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info FieldInfoWrapper
Результат System.Xml.Linq.XElement

FindDocumentation() публичный статический Метод

public static FindDocumentation ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info MethodInfoWrapper
Результат System.Xml.Linq.XElement

FindDocumentation() публичный статический Метод

public static FindDocumentation ( XElement>.IDictionary ndoc, PropertyInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info PropertyInfoWrapper
Результат System.Xml.Linq.XElement

FindDocumentation() публичный статический Метод

public static FindDocumentation ( XElement>.IDictionary ndoc, TypeWrapper type ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
type TypeWrapper
Результат System.Xml.Linq.XElement

FindDocumentationPCLAsyncAlternative() публичный статический Метод

For methods that DO NOT end in "Async", checks for the Async version of the method with a similar signature, following the PCL/.Net45 Async pattern.
public static FindDocumentationPCLAsyncAlternative ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info MethodInfoWrapper
Результат System.Xml.Linq.XElement

FindDocumentationUnityAsync() публичный статический Метод

For methods that end in "Async", checks for the method with a similar signature, but following the Unity Async pattern.
public static FindDocumentationUnityAsync ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info MethodInfoWrapper
Результат System.Xml.Linq.XElement

FindDocumentationUnityAsyncAlternative() публичный статический Метод

For methods that DO NOT end in "Async", checks for the Async version of the method with a similar signature, following the Unity Async pattern.
public static FindDocumentationUnityAsyncAlternative ( XElement>.IDictionary ndoc, MethodInfoWrapper info ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
info MethodInfoWrapper
Результат System.Xml.Linq.XElement

FindFieldDocumentation() публичный статический Метод

public static FindFieldDocumentation ( XElement>.IDictionary ndoc, TypeWrapper type, string fieldName ) : System.Xml.Linq.XElement
ndoc XElement>.IDictionary
type TypeWrapper
fieldName string
Результат System.Xml.Linq.XElement

FindFieldDocumentation() публичный статический Метод

public static FindFieldDocumentation ( TypeWrapper type, string fieldName ) : System.Xml.Linq.XElement
type TypeWrapper
fieldName string
Результат System.Xml.Linq.XElement

FindParameterDocumentation() публичный статический Метод

public static FindParameterDocumentation ( System.Xml.Linq.XElement ndoc, string name ) : string
ndoc System.Xml.Linq.XElement
name string
Результат string

FindReturnDocumentation() публичный статический Метод

public static FindReturnDocumentation ( System.Xml.Linq.XElement ndoc ) : string
ndoc System.Xml.Linq.XElement
Результат string

GenerateDocId() публичный статический Метод

public static GenerateDocId ( string serviceName, string platform ) : string
serviceName string
platform string
Результат string

GetDocumentationInstance() публичный статический Метод

public static GetDocumentationInstance ( string docId ) : XElement>.IDictionary
docId string
Результат XElement>.IDictionary

GetDocumentationInstance() публичный статический Метод

public static GetDocumentationInstance ( string serviceName, string platform ) : XElement>.IDictionary
serviceName string
platform string
Результат XElement>.IDictionary

LoadAssemblyDocumentationWithSamples() публичный статический Метод

public static LoadAssemblyDocumentationWithSamples ( string filePath, string samplesDir, string serviceName ) : System.Xml.Linq.XDocument
filePath string
samplesDir string
serviceName string
Результат System.Xml.Linq.XDocument

LoadDocumentation() публичный статический Метод

public static LoadDocumentation ( string assemblyName, string serviceName, string platform, SDKDocGenerator.GeneratorOptions options ) : void
assemblyName string
serviceName string
platform string
options SDKDocGenerator.GeneratorOptions
Результат void

PreprocessCodeBlocksToPreTags() публичный статический Метод

public static PreprocessCodeBlocksToPreTags ( SDKDocGenerator.GeneratorOptions options, System.Xml.Linq.XDocument doc ) : void
options SDKDocGenerator.GeneratorOptions
doc System.Xml.Linq.XDocument
Результат void

TransformDocumentationToHTML() публичный статический Метод

public static TransformDocumentationToHTML ( System.Xml.Linq.XElement element, string rootNodeName, AbstractTypeProvider typeProvider, SDKDocGenerator.FrameworkVersion version ) : string
element System.Xml.Linq.XElement
rootNodeName string
typeProvider AbstractTypeProvider
version SDKDocGenerator.FrameworkVersion
Результат string