Faker
Faker
Explore posts from servers
CC#
Created by Faker on 3/31/2025 in #help
Resource to learn making GUI in C#
Yep noted, will get started with WPF, and then if needed will learn winforms, thanks !
37 replies
CC#
Created by Faker on 3/31/2025 in #help
Resource to learn making GUI in C#
yep I see. Last question, should I learn Windows Forms before WPF or I can just get started with WPF (or it depends on what I want, like legacy systems etc...)? It's just to become more familiar with GUI (I like GUIs but don't know how to make them :c)
37 replies
CC#
Created by Faker on 3/31/2025 in #help
Resource to learn making GUI in C#
Alright, will just get started with the WPF since it's more modern... by the way, is there a reason why we should avoid the drag and drop for WPF? I read that GUI in C# was drag and drop, so in my head it was just going to be something relatively quick to learn, but this might not be the case? :c
37 replies
CC#
Created by Faker on 3/31/2025 in #help
Resource to learn making GUI in C#
Noted, will have a look, ty !!
37 replies
CC#
Created by Faker on 3/31/2025 in #help
Resource to learn making GUI in C#
euh, like for beginners
37 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ Is there a difference when we use { get; init; } vs { get; } ?
Thanks !
19 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ Is there a difference when we use { get; init; } vs { get; } ?
yep I see
19 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ Is there a difference when we use { get; init; } vs { get; } ?
yeah, it's just syntax sugar?
19 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ Is there a difference when we use { get; init; } vs { get; } ?
yep I see
19 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ Is there a difference when we use { get; init; } vs { get; } ?
Assume the constructor is there
19 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ Is there a difference when we use { get; init; } vs { get; } ?
Ah I see, my bad sorry
19 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ Is there a difference when we use { get; init; } vs { get; } ?
I mean, without the init, we would only have been able to do this:
C#

var p = new Person("John","Doe");
C#

var p = new Person("John","Doe");
?
19 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ Is there a difference when we use { get; init; } vs { get; } ?
oh ok, would it have work if we would have use the constructor instead of the object initializer?
19 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ What is a primary constructor in C#
But I have an overview now, thanks guys 👍
25 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ What is a primary constructor in C#
yep, I guess if I have some doubts, will just stick with sharplab to clearly see what's happening
25 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ What is a primary constructor in C#
just learning about that :c
25 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ What is a primary constructor in C#
yeah I see
25 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ What is a primary constructor in C#
yeah sorry
25 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ What is a primary constructor in C#
yeah I see, yeah I see, hmm, consider the code: when we use primary constructors, like here:
C#
class Person(string name, int age)
{
public string Name { get; } = name;
public int Age { get; } = age;
}
C#
class Person(string name, int age)
{
public string Name { get; } = name;
public int Age { get; } = age;
}
the syntax is to set the variable "name" used in the primary constructors to the property "Name"?
25 replies
CC#
Created by Faker on 3/26/2025 in #help
✅ What is a primary constructor in C#
yeah the idea of backing field, etc ?
25 replies