Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:30
    bartonjs commented #43153
  • 07:31
    LlaneGuo starred dotnet/corefx
  • Jul 05 22:56
    vcsjones synchronize #43153
  • Jul 05 22:54
    bartonjs commented #43153
  • Jul 05 22:38
    vcsjones synchronize #43153
  • Jul 05 21:44
    bartonjs commented #43153
  • Jul 05 21:43
    bartonjs labeled #43153
  • Jul 05 21:32
    vcsjones review_requested #43153
  • Jul 05 21:31
    Dotnet-GitSync-Bot labeled #43153
  • Jul 05 21:31
    vcsjones opened #43153
  • Jul 05 20:24
    joaovitorpina starred dotnet/corefx
  • Jul 05 19:29
    mmitche closed #43151
  • Jul 05 19:28
    mmitche opened #43152
  • Jul 05 19:24
    mmitche opened #43151
  • Jul 04 11:59
    kkalid65 starred dotnet/corefx
  • Jul 02 10:50
    r07627015 starred dotnet/corefx
  • Jun 29 17:10
    carlossanlop review_requested #43138
  • Jun 29 15:25
    dnfadmin commented #43138
  • Jun 28 22:05
    Dotnet-GitSync-Bot labeled #43150
Light
@PylotLight
Looking for the correct room for WinUi3, attempting to update UI thread, but having trouble.
Michael Fry
@nth-commit
Does anyone know of any good docs on writing custom LINQ implementations. It's really hard to search for because everyone's asking about IEnumerables when talking about LINQ. There's definitely some magic there that I've been prodding away at, and would really benefit from a proper understanding of. The only thing I've found which mentioned this was like "see an example of this in the AsEnumerable docs". The AsEnumerable() docs: https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.asenumerable?view=net-5.0
8 replies
masonwheeler
@masonwheeler
If you want a good explanation of how Linq works, look up Jon Skeet's Edulinq series of blog posts.
1 reply
Isobel Cullen
@isobel-cullen
I cannot believe that this use-case is unsupported: https://dotnetfiddle.net/elSDwz (System.Text.Json + Record Types)
MichaƂ Zegan
@webczat
seems to be the reference handler limitation, not actual not supporting of records
and probably generally affects things with parameterized constructors.pretty sure non positional records would work.
Paul M Cohen
@paul1956
What do I need to do to try .Net 6 preview I am running Microsoft Visual Studio Community 2019 Preview
Version 16.10.0 Preview 1.0 and don't see any option for .Net 6.
Joe4evr
@Joe4evr
@paul1956 just grab the SDK from here: https://dotnet.microsoft.com/download/dotnet/6.0
Igor Velikorossov
@RussKie
You can create a net5.0 project, then having installed net6.0 preview, update the project file to "net6.0-windows"
Joe4evr
@Joe4evr
I'm waiting for preview3 to drop before playing around with it (:
p3 has a new API that I've been dying to use
Paul M Cohen
@paul1956

When I try .Net6 it does not like below, ApplyHighDpiModeEventArgs and ApplyHighDpiMode are not found

Private Sub MyApplication_ApplyHighDpiMode(sender As Object, e As My.ApplyHighDpiModeEventArgs) Handles Me.ApplyHighDpiMode
        e.HighDpiMode = HighDpiMode.PerMonitorV2
End Sub

I don't see anything about WinForms in the what's new or any breaking changes

alealpha2000
@alealpha2000
hello? can i ask a question about regex in .net?
i use this regex AA\((.+?)\) to get the text inside the parenthesis after AA in AA(text)-AB(text2)-
however if I have this AA()-AB(text2) then the regex matches the whole string and i get )-AB(text2 extracted out. how can i get an empty result if there is no text in the parenthesis after AA?
masonwheeler
@masonwheeler
Some people, when faced with a problem, think "I know, I'll use regular expressions!" Now they have two problems.
It's an old joke, but it's a joke that exists for a reason.
Joseph Musser
@jnm2
I used regex today, feels like it ended with zero problems.
Igor Velikorossov
@RussKie
You need to use non-greedy search
Joseph Musser
@jnm2
If possible, use [^)] rather than .. Regex is not good at handling distinctions in level of nesting though IIRC.
So e.g. AA\([^)]*\)
@RussKie It looks like they are already using non-greedy search because of the .+?
@alealpha2000 Is maybe part of the problem if you want to match a zero length that you are using + instead of *?
alealpha2000
@alealpha2000

So e.g. AA\([^)]*\)

that seems to work. thanks!

John Moreno
@jrmoreno1
@stephentoub : is new guid really not cryptographically secure in .net core?
CyrusNajmabadi
@CyrusNajmabadi
Guid is not cryptographically secure afaict
It may be on some platforms, but i don't believe there is any guarantee of that
masonwheeler
@masonwheeler
Guid's intent is right there in its name: it's meant to be globally unique, not cryptographically anything.
Isobel Cullen
@isobel-cullen
are completed Tasks immutable?
CyrusNajmabadi
@CyrusNajmabadi
they shoudl be.
Isobel Cullen
@isobel-cullen
excellent, thanks
Stephen A. Imhoff
@Clockwork-Muse

@isobel-cullen - If they're not, you have a pretty dangerous race condition.

ValueTask is mutable, more or less, but callers aren't supposed to muck with it (and are supposed to ignore it after successfully awaiting it, so don't have to deal with other modifications anyways).

Isobel Cullen
@isobel-cullen
yes that was my thoughts, but just wanted to confirm before I accidentally introduced weird race conditions into the code
CyrusNajmabadi
@CyrusNajmabadi
be very careful with ValueTask
Isobel Cullen
@isobel-cullen
I wasn't planning on using it, small number of tasks in Blazor, just need to share the results for simultaneous requests to the same resource
Paul M Cohen
@paul1956
Is there a chart component for .Net Core for Winforms? I need to dray a line graph I see one for framework.
Paul M Cohen
@paul1956
@RussKie thanks
Will the framework controls not be ported?
Igor Velikorossov
@RussKie
Can you rephrase the quesiton?
Paul M Cohen
@paul1956
Will the framework data visualization controls be included in .net 6?
Or is above the long term solution?
Igor Velikorossov
@RussKie
Paul M Cohen
@paul1956
Thanks
Mohammad Hamdy Ghanem
@VBAndCs
@paul1956 Scientific Basic has advanced graphical capabilities as I see on the samples of the remade file. You may use whatever lib they are using for that:
https://github.com/xieguigang/sciBASIC
Paul M Cohen
@paul1956
@VBAndCs very nice but I hope to start with something simpler.
Urban
@Jinjinov
Hi! Does anyone know when .NET 6 Preview 4 comes out?
Igor Velikorossov
@RussKie
IIUIC it should release with the #Build
Valentyn Bondarenko
@bond-id
Hello. What would your recommend me to learn first -- WinForms or WPF? I just start off with C# and .NET. WinForms is much easier, but WPF is more flexible and yet much more complex. At this point, I tend to believe, WinForms would teach me faster this basic understanding of what a C# framework looks like, and how it can be used.