Ejemplo n.º 1
0
		protected virtual void HandleFinderEvent(ComparerType comparerType, EventType eventType, Type type) {
			if (eventType == EventType.FindUnregistered && type.IsValueType) {
				switch (comparerType) {
				case ComparerType.Comparer:
					comparers.Add(type);
					break;
				case ComparerType.EqualityComparer:
					equalityComparers.Add(type);
					break;
				default:
					break;
				}
			}
		}
    protected virtual void HandleFinderEvent(ComparerType comparerType, EventType eventType, Type type)
    {
        if (eventType == EventType.FindUnregistered && type.IsValueType)
        {
            switch (comparerType)
            {
            case ComparerType.Comparer:
                comparers.Add(type);
                break;

            case ComparerType.EqualityComparer:
                equalityComparers.Add(type);
                break;

            default:
                break;
            }
        }
    }