Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.11 KB

File metadata and controls

36 lines (29 loc) · 1.11 KB

System.Reflection


AssemblyExtensions

Extension methods for System.Reflection.Assembly that provide API-specific naming functionality.

public static class AssemblyExtensions

Static Methods

GetApiName

string GetApiName(this Assembly assembly, bool removeLastVerb = False)

Summary: Gets a human-readable API name from the assembly, replacing "Api" with "API" for proper casing.

Parameters:
     assembly  -  The assembly.
     removeLastVerb  -  If true, removes the last word from the beautified assembly name.

Returns: A formatted API name derived from the assembly name.

Code example:

For an assembly named "MyService.Api", this returns "My Service API".
If  is true, it returns "My Service"

Generated by MarkdownCodeDoc version 1.2