This is just the UI. The logic is fine.
static void Main(string[] args)
{
Console.WriteLine("This is a passwordgenerator.");
Console.WriteLine("Enter the length of your password (12 signs recommended): ");
int length;
try
{...
I'm a C# beginner and I don't really know how good my program is.
I wrote a program that shows the user the weather at their location.
I would be very grateful if someone would read it and give me a rating.
you can find it here:
https://github.com/LukasEber/WeatherApp
I am programming a C# blazor game, and there is a method that sets a property in a class. If the button, which calls the method was clicked, on the next page the property will be printed.
Here is a simplified example:
class A{
public string test {get; set;}
}
class B{
public void...
Is there a way to share variables or properties between to classes?
For example I have a blazor web app with 2 pages and 2 partial classes. How can I share the variable A from class 1 with class 2?
Is there a way to do this?
I am actually programming a tic tac toe game with the blazor framework and I have already a function to lock the button if it was clicked. It looks like this:
public class ElementOfMatchField
{
public int Row { get; set; }
public int Column { get; set; }
public...
I wanna build a Tic Tac Toe Blazor game. To print the fields I am using html buttons and a foreach loop:
@if(MatchField != null)
{
@foreach(var field in MatchField)
{
<span>
<button @onclick="() => PrintSymbolOnButton(field)" >...
I have a Blazor Server Side Web Application that uses the default authorization and authentication.
app.UseAuthentication()
app.UseAuthorization()
I can protect my pages with
@attribute [Authorize]
I have a login page with anonymous access to authenticate. This works fine.
Now I need a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.