This is a viewer only at the moment see the article on how this works.
To update the preview hit Ctrl-Alt-R (or ⌘-Alt-R on Mac) or Enter to refresh. The Save icon lets you save the markdown file to disk
This is a preview from the server running through my markdig pipeline
Wednesday, 19 May 2004
En annan av mina ganska enkla funktioner (faktiskt skriven av en kollega till mig, Jonny Anderson) - den här gången bara ett enkelt sätt att validera en Guid - i detta genomförande du passerar in en Guid som en "out" parameter tillsammans med strängen du vill testa - det fyller sedan i Guid och returnerar sant / falskt beroende på om Guid var giltigt ...
privat statisk Regex isGuid = ny Regex(@"^({){0,1}[0-9a-fA-f8-[0-9a-fA-f4-[0-9a-fA-f4-[0-9a-fA-f4-[0-9a-fA-F) {12}(}) {0,1}$", RegexOptions.Compiled);
inre statisk bool IsGuid( sträng kandidat, ut Guid utgång)
{
bool ärValid = falskt;
utdata=Guid.Empty;
Om (kandidat!=null)
{
Om (är Guid.IsMatch(kandidat))
{
Utmatning = ny Guid (kandidat).
ärValid = sant,
}
}
Återlämnande är Valid.
} ?>
© 2026 Scott Galloway — Unlicense — All content and source code on this site is free to use, copy, modify, and sell.