# LazyString class

Namespace: [Grasshopper2.UI](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class LazyString
```

A process which computes a string lazily in a background thread.

## Constructors

- [LazyString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.lazystring/ctor.md): (2 overloads) Create a lazy string with a precomputed result.

## Properties

- [Computed](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.lazystring/computed.md): Gets whether this instance has finished computing the [LazyString.Display(bool)](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.lazystring/display.md) string.
- [Empty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.lazystring/empty.md): (static) Gets an empty lazy string.
- [Final](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.lazystring/final.md): Gets the final, computed string. This field will return null while the computation is still ongoing.
- [Placeholder](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.lazystring/placeholder.md): Gets the fallback string to be returned while the process is still computing. This never returns null.

## Methods

- [Display](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.lazystring/display.md): Gets the current display string. This will either be the [LazyString.Placeholder](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.lazystring/placeholder.md) string or the [LazyString.Final](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.lazystring/final.md) string.

## Convertors

- [operator implicit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.lazystring/op-implicit.md): (static) Create a completed lazy string from a result.
