private void LoadSupports(BEncodedDictionary supports) { var extensionSupports = supports .Select(k => new ExtensionSupport(k.Key.Text, (byte)((BEncodedNumber)k.Value).Number)); _supports = new ExtensionSupports(extensionSupports); }
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); }