public ECSString Copy() { DBC.ECS.Check.Require(_id != 0, "copying not initialized string"); var id = ResourcesECSDB <string> .ToECS(ResourcesECSDB <string> .resources(_id)); return(new ECSString(id)); }
public void Set(string newText) { if (id != 0) { ResourcesECSDB <string> .resources(id) = newText; } else { id = ResourcesECSDB <string> .ToECS(newText); } }
/// <summary> /// Note: Setting null String could be a good way to signal a disposing of the ID so that /// it can be recycled. /// Zero id must be a null string /// </summary> /// <param name="newText"></param> public void Set(string newText) { if (_id != 0) { if (ResourcesECSDB <string> .resources(_id).Equals(newText) == false) { ResourcesECSDB <string> .resources(_id) = newText; _versioning++; } } else { _id = ResourcesECSDB <string> .ToECS(newText); } }
public ECSString(string newText) : this() { _id = ResourcesECSDB <string> .ToECS(newText); }
public ECSString(string newText) { id = ResourcesECSDB <string> .ToECS(newText); }