Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
ASP.NET Core is a lean, composable and cross-platform framework for building web and cloud applications. It is fully open source and available on GitHub, and is currently in version 1.1.0. ASP.NET Core can be run both on .NET and .NET Core, and can be hosted on Linux and MacOS under .NET Core.
1
vote
C# decomposition and refactoring of a very long Web Data Scraping Function with multiple dif...
This is a very minor addition to the other answers. Lift your regex pattern up to the class level along with a regex object representing it:
private const string pattern = ":data-next=\"" + "({.*?})" …
1
vote
Accepted
wrapper for a web request call
Name the method SendAsync since it is meant to be used asynchronously. Since this is in a web app, all awaited calls should chain to .ConfigureAwait(false). Also, since you're async, use await writer. …
5
votes
Accepted
Generate secure URL safe token
Minor suggestions:
public class UrlToken
The class has no instance data, so it could be made static:
public static class UrlToken
Microsoft's Naming Guidelines and their Framework Design Guideli …
5
votes
Accepted
Validating a date with C# and ASP.NET Core 3.1
You could easily turn your method into a one-liner expression-bodied method with a few tricks:
use the _ discard variable instead of the explicit parsedDate variable (also, it doesn't need initializi …