Example #1
0
        public BlockInformation Get(string name)
        {
            foreach (var block in BlockInformationProvider.GetBlocks())
            {
                if (string.Equals(block.Name, name, StringComparison.OrdinalIgnoreCase))
                {
                    return(block);
                }
            }

            return(null);
        }
Example #2
0
 public BlockInformation[] Get() => BlockInformationProvider.GetBlocks();