Summary
Appends the C# declaration of a property with a signature matching the specified `property` and an [Obsolete] attribute.
The body of the property 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, PropertyInfo property, string obsoleteMessage = "", bool error = false)
Parameters
Name | Type | Description |
---|---|---|
text | StringBuilder | |
indent | int | |
property | PropertyInfo | |
obsoleteMessage | string | |
error | bool |
Return Value
Type | Description |
---|---|
void |