public EnumMemberInternal(TInt value, string name, AttributeCollection attributes, EnumCache <TInt, TIntProvider> enumCache) { Value = value; Name = name; Attributes = attributes; _enumCache = enumCache; }
public EnumMemberParser(EnumFormat format, EnumCache <TInt, TIntProvider> enumCache) { _formatValueMap = new Dictionary <string, EnumMemberInternal <TInt, TIntProvider> >(enumCache.GetEnumMemberCount(false), StringComparer.Ordinal); foreach (var member in enumCache.GetEnumMembers(false)) { var formattedValue = member.AsString(format); if (formattedValue != null) { _formatValueMap[formattedValue] = member; } } }
public EnumComparer CreateEnumComparer(EnumCache enumCache) => new EnumComparer <TEnum>(enumCache);
private protected EnumComparer(EnumCache enumCache) { _enumCache = enumCache; }
public EnumInfo() { _cache = new EnumCache <TInt, TIntProvider>(typeof(TEnum), this); }