Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public void Set(string newText)
 {
     if (id != 0)
     {
         ResourcesECSDB <string> .resources(id) = newText;
     }
     else
     {
         id = ResourcesECSDB <string> .ToECS(newText);
     }
 }
Esempio n. 3
0
        /// <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);
            }
        }
Esempio n. 4
0
 public override string ToString()
 {
     return(ResourcesECSDB <string> .FromECS(_id));
 }
Esempio n. 5
0
 public ECSString(string newText) : this()
 {
     _id = ResourcesECSDB <string> .ToECS(newText);
 }
Esempio n. 6
0
 public ECSString(string newText)
 {
     id = ResourcesECSDB <string> .ToECS(newText);
 }