Пример #1
0
        public MethodSignatureSet GetOrCreateFor(string methodName)
        {
            lock (Sets) {
                MethodSignatureSet result;

                if (!Sets.TryGetValue(methodName, out result))
                {
                    Sets[methodName] = result = new MethodSignatureSet(this, methodName);
                }

                return(result);
            }
        }
Пример #2
0
 public bool TryGet(string methodName, out MethodSignatureSet result)
 {
     lock (Sets)
         return(Sets.TryGetValue(methodName, out result));
 }