int SourceLine { get; set; }

robot_2Generated
code_blocksInput

Description

The SourceLine property provides the line number of the member within its source file. This can be useful for debugging or logging purposes, allowing developers to trace back to the exact line of code in the source file where a particular member is defined.

Usage

To access the SourceLine property, you need an instance of the TypeDescription class. This property is read-only and returns an integer representing the line number.

Example

// Assuming 'typeDescription' is an instance of TypeDescription
int lineNumber = typeDescription.SourceLine;

// Use the line number for logging or debugging
Log.Info($"Member is defined at line: {lineNumber}");