Exemple #1
0
 public void Remove(long oid = 0, string name = null)
 {
     try
     {
         RemoveObject(ClassifiedObject.MakeKey(oid, name));
     }
     catch
     {
         throw;
     }
 }
Exemple #2
0
        public T Get <T>(long oid = 0, string name = null)
            where T : class, new()
        {
            try
            {
                var obj = GetObject(ClassifiedObject.MakeKey(oid, name));
                if (null == obj)
                {
                    return(null);
                }

                return(obj.GetValue <T>());
            }
            catch
            {
                throw;
            }
        }