int SourceLine { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The SourceLine property of the TypeDescription class provides the line number in the source code where this type 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 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
Debug.Log($"The member is defined at line: {lineNumber}");