CSharpProcedural.

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

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.

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