CSharpProcedural.

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

Summary

Appends the C# declaration of a constructor with a signature matching the specified `constructor` and an [Obsolete] attribute.

The body of the constructor will simply throw a System.NotImplementedException.

Syntax

public static void AppendObsoleteDeclaration(StringBuilder text, int indent, ConstructorInfo constructor, string obsoleteMessage = "", bool error = false)

Parameters

Name Type Description
text StringBuilder
indent int
constructor ConstructorInfo
obsoleteMessage string
error bool

Return Value

Type Description
void