The compiler understandably borks at this. Still I'd like to find a solution that avoids repetition and doesn't require writing multiple overloads for different primitives.
That article title has a typo, it's supposed to say "Do I even need it?"
And... I would not have wasted time writing a full article on a software [or feature] analysis based on exactly 1 user experience.
I don't use it too (only for shutdown/restart), but it's because I have pinned all my frequently apps directly in the taskbar.
For search files, I use the PowerToys Run app.
But, I understand that a place where ALL apps are listed and available is needed.
Question
simplezz
Hi all,
I'm trying to pass a value constrained type to BitConverter.GetBytes, but c# only permits a struct constraint. For example:
The compiler understandably borks at this. Still I'd like to find a solution that avoids repetition and doesn't require writing multiple overloads for different primitives.Link to comment
https://www.neowin.net/forum/topic/1266054-bufferblockcopy-passing-generic-argument/Share on other sites
2 answers to this question
Recommended Posts