コード例 #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;
        }
コード例 #3
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;
        }
コード例 #4
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);
        }