Summary
Appends the C# declaration of a method with a signature matching the specified `method` and an [Obsolete] attribute.
The body of the method will simply throw a
System.NotImplementedException
.
- Assembly
- Weaver
.dll - Namespace
- Weaver
.Editor .Procedural .Scripting - Containing Type
- CSharpProcedural
Syntax
public static void AppendObsoleteDeclaration(StringBuilder text, int indent, MethodInfo method, string obsoleteMessage = "", bool error = false)
Parameters
Name | Type | Description |
---|---|---|
text | StringBuilder | |
indent | int | |
method | MethodInfo | |
obsoleteMessage | string | |
error | bool |
Return Value
Type | Description |
---|---|
void |