dodexahedron
dodexahedron
> Advice to never use this code if you are separately assigning the values and checking equality for both properties because only one is changed at a time. > >...
An important thing about `with`, however, is that it is not only legal on structs, but also on `record` classes. Regardless of whether it is used on a reference or...
One other thing that is a perk to using with when appropriate: If the value type you are mutating is not mutable, it prevents ephemeral changes to values from not...
Here's the documentation for the `with` operator if you are curious. It's a pretty short one because it really is as simple as what I said here already. :) https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/with-expression
Oh. It also works on anonymous types, apparently (just learned that from the doc). Though I don't think we use those anywhere anyway outside of Tuples. Interesting anyway. 🤷♂️
One thing I also like to use it for, when the situation arises, is to make a quick copy of something with the same values. You can do that by...
> > Please, when using `AssertDriverContentsWithFrameAre` on unit tests use the @"", otherwise R# will break it. > > I think I see what might have happened for you. It...
> > After doing a cleanup code R# re-adds type name on object initializers. What I need to do? > > Before: > > ```cs > > _contentOffset = new...
Not to derail any troubleshooting or anything, but... For what it's worth, I have encountered the same behavior, on both Windows and Linux as the client OS, using Konsole and...
Initial post is the outline. Any comments, suggestions, requests, etc are welcome and appreciated!