What's the using directive for Strings in C#?

I’ve looked around a bit and can’t find what the String using directive is. I thought it would be System.Text but apparently not because I still get the missing using directive error. Any help?

Thank you.

What do you mean by directive? C# doesn’t need any additional "Using"s to use strings.

Just type in

public string hi = "hello"
void update()
{
    print(hi);
}
using System;

Because String is in System. I think that’s what you’re looking for. Otherwise, you’re just using a capital instead of lowercase S.

haha Fail on my part. I put an upper case S on the field type instead of a lower case s. I’m doing a book that is purely in Javascript and I’m trying to convert it into my preferred C# language. Thank you for bringing that to my attention.

Yep that’s what I did. Thank you.

I learned about this shortly about the time I switched to C#. Thanks, Eric!

http://forum.unity3d.com/threads/41145-lowercase-string-or-uppercase-String

I didn’t understand what was going on; almost every time I’ve found myself needing a string, I also have imported System.String, for more concise text manipulation, so you can see why it wasn’t so clear, to somebody who hadn’t been introduced to System.String properly.