I have this code
private string Site;
public string SiteID
{
get {
if (this.Type == 0)
{
Site.Replace("Æ", "Æ");
Site.Replace("Ø", "Ø");
Site.Replace("Å", "Å");
Site.Replace("æ", "æ");
Site.Replace("ø", "ø");
Site.Replace("å", "å");
}
return Site;
}
set { Site = value; }
}
In my model class. But when it comes to getting a string that looks like this:
"LØNX"
and I step through it in debugging mode and its exactly the same after.
Even though this line:
Site.Replace("Ø", "Ø");
should have changed it. Why doesn't it??