Exemplo n.º 1
0
        private void LoadSupports(BEncodedDictionary supports)
        {
            var extensionSupports = supports
                                    .Select(k => new ExtensionSupport(k.Key.Text, (byte)((BEncodedNumber)k.Value).Number));

            _supports = new ExtensionSupports(extensionSupports);
        }
Exemplo n.º 2
0
        private void LoadSupports(BEncodedDictionary supports)
        {
            var list = new ExtensionSupports();

            list.AddRange(supports.Select(k => new ExtensionSupport(k.Key.Text, (byte)((BEncodedNumber)k.Value).Number)));

            Supports = list;
        }
        private void LoadSupports(BEncodedDictionary supports)
        {
            var list = new ExtensionSupports();
            list.AddRange(supports.Select(k => new ExtensionSupport(k.Key.Text, (byte) ((BEncodedNumber) k.Value).Number)));

            Supports = list;
        }
        private void LoadSupports(BEncodedDictionary supports)
        {
            var extensionSupports = supports
                .Select(k => new ExtensionSupport(k.Key.Text, (byte) ((BEncodedNumber) k.Value).Number));

            _supports = new ExtensionSupports(extensionSupports);
        }