# StringInfo

Struct in [Yarn.Compiler](https://docs.yarnspinner.dev/api/csharp/yarn.compiler)

Inherits from `System.ValueType`

## Summary

Information about a string. Stored inside a string table, which is produced from the Compiler.

```csharp
public struct StringInfo
```

## Remarks

You do not create instances of this class yourself. They are generated by the [Compiler](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.compiler) .

## Fields

| Name                                                                                                                                   | Description                                                                                         |
| -------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| [fileName](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.stringinfo/yarn.compiler.stringinfo.filename)           | The name of the file this string was found in.                                                      |
| [isImplicitTag](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.stringinfo/yarn.compiler.stringinfo.isimplicittag) | Indicates whether this string's line ID was implicitly generated.                                   |
| [lineNumber](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.stringinfo/yarn.compiler.stringinfo.linenumber)       | The line number at which this string was found in the file.                                         |
| [metadata](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.stringinfo/yarn.compiler.stringinfo.metadata)           | The metadata (i.e. hashtags) associated with this string.                                           |
| [nodeName](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.stringinfo/yarn.compiler.stringinfo.nodename)           | The name of the node that this string was found in.                                                 |
| [shadowLineID](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.stringinfo/yarn.compiler.stringinfo.shadowlineid)   | The ID of the line that this line is shadowing, or null if this line is not shadowing another line. |
| [text](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.stringinfo/yarn.compiler.stringinfo.text)                   | The original text of the string.                                                                    |

## Methods

| Name                                                                                                                           | Description |
| ------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| [ToString()](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.stringinfo/yarn.compiler.stringinfo.tostring) |             |
