private static bool IsAFullBoxType(uint type) { string typeAsString = Conversions.GetTypeAsString(type); return(fullBoxes[0].Contains(typeAsString) || fullBoxes[1].Contains(typeAsString)); }
public string GetTypeAsString() { return(Conversions.GetTypeAsString(Type)); }
private static bool IsARecognizedType(uint type) { string typeAsString = Conversions.GetTypeAsString(type); return(recognizedTypes.Contains(typeAsString)); }
private InternalBoxDefinition GetBox() { try { return(currentBoxDefinition = knownBoxes .Where(d => d.Types.Contains(GetTypeAsString())) .Where(d => (!Container.HasValue && d.Containers.Contains(null)) || (Container.HasValue && (d.Containers.Contains(string.Empty) || d.Containers.Contains(Conversions.GetTypeAsString(Container.Value))))) .SingleOrDefault()); } catch { return(null); } }