CSharpProcedural.

AppendObsoleteDeclaration(StringBuilder, int, PropertyInfo, string, bool) Method

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.

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