Пример #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);
        }
Пример #2
0
 public BlockInformation[] Get() => BlockInformationProvider.GetBlocks();