CSharpProcedural.

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

Summary

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

If the field is static and Weaver.Editor.Procedural.Scripting.CSharpProcedural.GetInitializer(System.Object) is able to determine the initializer for its current value, that initializer will also be included.

Syntax

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

Parameters

Name Type Description
text StringBuilder
indent int
field FieldInfo
obsoleteMessage string
error bool

Return Value

Type Description
void