Maby a stupid question but...


I have seen in examples in the documentation that sometimes a property is written:

public virtual String IntroText { get; set; }

and othertimes

public virtual string IntroText { get; set; }

string is just an alias for System.String so there are no differens between them but I wonder what is the prefered way to write it semantically

Mar 01, 2015 20:52

More details:


Mar 02, 2015 2:46

Thanks Frederik, I know the difference, I am more interested in knowing if there are are kind of best practices from EPiServer on which to use.

Mar 02, 2015 7:47

I don't think we have any best practice for this because at runtime level they are the same. If I am to give recommendation then it would be choose one and stick with it for consistency. We - Commerce team choose string over String.


Mar 02, 2015 21:24

Ok, thanks Quan, that is what I prefers as well

Mar 02, 2015 21:54
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.