Beispiel #1
0
 public CollectionStatistics GetCollectionStatistics(string role)
 {
     lock (SyncRoot)
     {
         CollectionStatistics cs;
         if (!collectionStatistics.TryGetValue(role, out cs))
         {
             cs = new CollectionStatistics(role);
             collectionStatistics[role] = cs;
         }
         return(cs);
     }
 }
		public CollectionStatistics GetCollectionStatistics(string role)
		{
			lock (SyncRoot)
			{
				CollectionStatistics cs;
				if (!collectionStatistics.TryGetValue(role, out cs))
				{
					cs = new CollectionStatistics(role);
					collectionStatistics[role] = cs;
				}
				return cs;
			}
		}