StyleCop.CSharp by StyleCop contributors, Andy Reeves, Chris Dahlberg

<PackageReference Include="StyleCop.CSharp" Version="6.2.0" />

.NET API 245,760 bytes


public class Variable : ICodePart
Describes a field, variable or constant.
public CodePartType CodePartType { get; }

Gets the type of this code part.

public bool Generated { get; }

Gets a value indicating whether the variable is located within a block of generated code.

public int LineNumber { get; }

Gets the line number on which this variable appears.

public CodeLocation Location { get; }

Gets the location of the variable.

public VariableModifiers Modifiers { get; }

Gets the modifiers applied to this variable.

public string Name { get; }

Gets the variable name.

public ICodePart Parent { get; }

Gets the parent of the variable.

public TypeToken Type { get; }

Gets the variable type.