int SourceLine { get; set; }

robot_2Generated
code_blocksInput

Description

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

Usage

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

Example

// Assuming 'memberDescription' is an instance of MemberDescription
int lineNumber = memberDescription.SourceLine;

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