You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

llama.extensions.keyvaluepairextensions.md 855 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # KeyValuePairExtensions
  2. Namespace: LLama.Extensions
  3. Extensions to the KeyValuePair struct
  4. ```csharp
  5. public static class KeyValuePairExtensions
  6. ```
  7. Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [KeyValuePairExtensions](./llama.extensions.keyvaluepairextensions.md)
  8. ## Methods
  9. ### **Deconstruct<TKey, TValue>(KeyValuePair<TKey, TValue>, TKey&, TValue&)**
  10. Deconstruct a KeyValuePair into it's constituent parts.
  11. ```csharp
  12. public static void Deconstruct<TKey, TValue>(KeyValuePair<TKey, TValue> pair, TKey& first, TValue& second)
  13. ```
  14. #### Type Parameters
  15. `TKey`<br>
  16. Type of the Key
  17. `TValue`<br>
  18. Type of the Value
  19. #### Parameters
  20. `pair` KeyValuePair&lt;TKey, TValue&gt;<br>
  21. The KeyValuePair to deconstruct
  22. `first` TKey&<br>
  23. First element, the Key
  24. `second` TValue&<br>
  25. Second element, the Value