public static bool IsBlocked(BlockInterrupt.EType type) { return(BlockInterrupt.mInstances.Find((Predicate <BlockInterrupt>)(i => { if (i.mType != type) { return i.mType == BlockInterrupt.EType.ALL; } return true; })) != null); }
public static BlockInterrupt Create(BlockInterrupt.EType type) { BlockInterrupt blockInterrupt = new BlockInterrupt(); if (blockInterrupt == null) { return((BlockInterrupt)null); } blockInterrupt.mActive = true; blockInterrupt.mType = type; BlockInterrupt.mInstances.Add(blockInterrupt); return(blockInterrupt); }