示例#1
0
 public AssetLog FindByName(string name)
 {
     var result = Entries.FirstOrDefault(e => e.Name.EqualsIgnoreCase(name));
     if (result == null)
     {
         result = new AssetLog(name);
         Entries.Add(result);
     }
     return result;
 }
示例#2
0
        public AssetLog FindByName(string name)
        {
            var result = Entries.FirstOrDefault(e => e.Name.EqualsIgnoreCase(name));

            if (result == null)
            {
                result = new AssetLog(name);
                Entries.Add(result);
            }
            return(result);
        }