AsMutable extension method #84072
Answered
by
huoyaoyuan
emphasis87
asked this question in
Ideas
-
Would it be possible to have a shorthand extension method to convert IReadOnly types (set, dictionary, list) back to mutable ones? |
Beta Was this translation helpful? Give feedback.
Answered by
huoyaoyuan
Mar 29, 2023
Replies: 1 comment 8 replies
-
No, because same data types are designed without mutable support in order to minimize copying, especially the |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
emphasis87
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, because same data types are designed without mutable support in order to minimize copying, especially the
Immutable*
ones.