Marqdouj.DotNet.General.CsDoc
10.6.5
Prefix Reserved
dotnet add package Marqdouj.DotNet.General.CsDoc --version 10.6.5
NuGet\Install-Package Marqdouj.DotNet.General.CsDoc -Version 10.6.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Marqdouj.DotNet.General.CsDoc" Version="10.6.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Marqdouj.DotNet.General.CsDoc" Version="10.6.5" />
<PackageReference Include="Marqdouj.DotNet.General.CsDoc" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Marqdouj.DotNet.General.CsDoc --version 10.6.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Marqdouj.DotNet.General.CsDoc, 10.6.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Marqdouj.DotNet.General.CsDoc@10.6.5
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Marqdouj.DotNet.General.CsDoc&version=10.6.5
#tool nuget:?package=Marqdouj.DotNet.General.CsDoc&version=10.6.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
dotnet.general.csdoc
Features (New)
- A simpler implementation for reading an XML documentation file.
XmlDocumentReader- Loads all member nodes found in the file. They can be accessed using the 'Members' property.
- Search for members using the
GetMembersmethod for aType, or implement your own custom search for items in theMemberscollection. - Improved logic for resolving comments that contain items like
cref,inheritdoc,see, etc.
Features (Legacy)
Resolves some of the documentation for a Class/Enum and it's members. Documentation is dervied from
DisplayAttributeand the assembly xml documentation file (if it exists).Classes.CSDocumentReader. Creates instances ofCSDocument.CSDocument. Manages a collection ofCSDocumentItemfor a class or enum.CSDocumentItem. Container forDisplayAttributeandCSDocumentXml's for a class/enum type or one of it's supported members.CSDocumentXml. Values extracted from the xml documentation file for a class/enum and of it's supported members.- Currently supported
MemberTypesareConstructor,Method, andProperty,
ExtensionsGetDisplayAttribute()/GetDisplayName(). Get theDisplayAttribute/Namefor supported objects.- Currently supported objects are
Enum,MemberInfo,PropertyInfo,Type.
- Currently supported objects are
Releases
v10.6.5XmlDocumentMemberParameter.- Constructor is now public.
Alias. New property for the parameter name alias.DisplayName. New property for the parameter display name.
XmlDocumentMember-SetParameters. Method is now public.
v10.6.4XmlDocumentReader.GetMembers. Added flag to the method for adding aXmlDocumentMemberinstance for missing type members.
XmlDocumentMember.- Added extension method:
GetParameterByName. Gets the first parameter that matches thename. Case in-sensitive.
- New Properties:
NameAlias.DisplayName.DisplayAttribute.
- Added extension method:
Sandbox. Fixed issue with missing xml file when loadingDocumentReaderpage.
v10.6.3XmlDocumentReader.- Added check for circular references when parsing comments.
- Updated logic for parsing comments.
v10.6.2XmlDocumentReader.- Fixed issue with parsing
XmlDocumentMember.Namewhere the method has parameters.
- Fixed issue with parsing
XmlDocumentMember.- Added extension methods:
GetMemberByName. Gets the first member that matches thenameparameter. Case in-sensitive.GetMembersWithName. Gets all members that start with thenameparameter. Case in-sensitive.
- Added extension methods:
v10.6.1XmlDocumentReader.LoadXml. Added optional flagthrowAnyException. Default is false.
XmlDocumentMember.Type. New property forTypeInfomembers.TypeName. New property forTypeInfomembers.GetMembers(string typeName). New method for getting members based on theTypeName.
v10.6.0XmlDocumentReader (New).- A simpler implementation for reading an XML documentation file.
v10.5.0- Full re-write on resolving the xml document member element names.
- The member types now supported are:
- MemberTypes.Constructor or MemberTypes.Method ⇒ 'M'
- MemberTypes.TypeInfo or MemberTypes.NestedType ⇒ 'T'
- MemberTypes.Event ⇒ 'E'
- MemberTypes.Field ⇒ 'F'
- MemberTypes.Property ⇒ 'P'
- The member types now supported are:
- Full re-write on resolving the xml document member element names.
v10.4.3General.Parameters. Most items now have aParametersproperty; which represents the XmlDocument parameters signature.
ICSDocument.- Added logic to handle generic method parameters, i.e. MyMethod<T, P>(T v1, bool flag, P p1), etc.
GetItem. Will now return the method that has parameters if it is the only method with the name. Parameters dot not need to be supplied.GetItems. New method. Returns all items with the same name.GetItem. Now supports search by name and parameters signature.Example:
You can also hard-code the parameters:var doc = cdReader.CreateDocument(typeof(MyStaticClass)); var items = doc.GetItems(nameof(MyStaticClass.GetMyOtherString)); var docItem1 = doc.GetItem(nameof(MyStaticClass.GetMyOtherString), items[0].Parameters); var docItem2 = doc.GetItem(nameof(MyStaticClass.GetMyOtherString), items[1].Parameters);var docItem1 = doc.GetItem(nameof(MyStaticClass.GetMyOtherString), "(System.Double,System.Double)"); var docItem2 = doc.GetItem(nameof(MyStaticClass.GetMyOtherString), "(System.Double,System.Double,System.Double)");ICSDocumentReader.ICSDocument CreateDocument(Type type, bool allMembers = true). Added method to handle types that can't be used with<T>i.e. can be used with static classes.
v10.2.0CSDocumentItem.NameAlias. Added property to override theNamewhen resolvingDisplayName. This is useful for providing a name for Enum types (which don't allow aDisplayattribute), i.e. Name = "MyEnumTypeName", NameAlias = "My Name".
v10.1.1- Added support for
cref=within the same xml documentation file.
- Added support for
v10.1.0- Added support for Interface types. Includes derived types and their members.
v10.0.1- Update project link in package.
v10.0.0- Initial release.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.