> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor/ks.reactor.ksatomic-1.md).

# Class ksAtomic\<T>

Namespace: [KS.Reactor](/reactor/api-reference/ks.reactor.md)\
Assembly: KSCommon.dll

Provides atomic access to a generic type.

```csharp
public class ksAtomic<T>
```

#### Type Parameters

`T`

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [ksAtomic\<T>](/reactor/api-reference/ks.reactor/ks.reactor.ksatomic-1.md)

#### Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### ksAtomic() <a href="#ks_reactor_ksatomic_1__ctor" id="ks_reactor_ksatomic_1__ctor"></a>

Constructor.

```csharp
public ksAtomic()
```

### ksAtomic(T) <a href="#ks_reactor_ksatomic_1__ctor__0" id="ks_reactor_ksatomic_1__ctor__0"></a>

Constructor

```csharp
public ksAtomic(T value)
```

#### Parameters

`value` T

Value to intialize with.

## Properties

### Value <a href="#ks_reactor_ksatomic_1_value" id="ks_reactor_ksatomic_1_value"></a>

Atomic getter/setter.

```csharp
public T Value { get; set; }
```

#### Property Value

T
