# StringValue constructor

Kind: Constructor  
Namespace: `Sisk.Core.Entity`  
Assembly: `Sisk.Core.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Core.Entity.StringValue.-ctor.html

## StringValue(string) {#Sisk_Core_Entity_StringValue__ctor_System_String_}

Creates an new empty value of the [StringValue](https://docs.sisk-framework.org/api/Sisk.Core.Entity.StringValue.md) with no predefined value.

```csharp
public StringValue(string name)
```

### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The [StringValue](https://docs.sisk-framework.org/api/Sisk.Core.Entity.StringValue.md) name.

## StringValue(string, string?) {#Sisk_Core_Entity_StringValue__ctor_System_String_System_String_}

Creates an new value of the [StringValue](https://docs.sisk-framework.org/api/Sisk.Core.Entity.StringValue.md).

```csharp
public StringValue(string name, string? value)
```

### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The [StringValue](https://docs.sisk-framework.org/api/Sisk.Core.Entity.StringValue.md) name.

`value` [string](https://learn.microsoft.com/dotnet/api/system.string)?

The [StringValue](https://docs.sisk-framework.org/api/Sisk.Core.Entity.StringValue.md) value.
