Skip to content

kathodion/c--url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

c--url-shortener

public class UrlShortenerService : IUrlShortenerService { private static readonly char[] _chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray(); private Dictionary<string, string> UrlDict { get; set; } = [];

private static string GenerateShortCode()
{
    return string.Create(5, _chars, (shortCode, charsState)
        => Random.Shared.GetItems(charsState, shortCode));
}

}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages