예제 #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);
        }
예제 #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);
        }