These simple two line code giving me error A field initializer cannot reference the nonstatic field, method, or property
ClassName.value'` . i just follow tutorial from enter link description here. I am using this code in unity3d.
// Input string.
string value = "Dot Net Perls";
// Use ToCharArray to convert string to array.
char[] array = value.ToCharArray();