Pobiega
Pobiega
CC#
Created by navin007 on 1/15/2025 in #help
✅ status code 200 (from disk cache) instead of 301
301s are permanent
8 replies
CC#
Created by navin007 on 1/15/2025 in #help
✅ status code 200 (from disk cache) instead of 301
Business requirements can't change the fundamental laws of nature, or the way browsers implement the HTTP protocol
8 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
most solutions (a collection of related projects) will have only one runnable project. If you have more than one, your compilaton results in more than one executable
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
you only specify the project
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
when you start a dotnet program, you dont specify the class to run
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
how is that relevant?
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
how would that work? which one would start when you ran the program?
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
no
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
you cant have TLS + explicit main in another file
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
its the exact same thing
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
TLS is only allowed in one file, because that file becomes your entry point
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
correct
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
https://sharplab.io/#v2:CYLg1APgAgTAjAWAFDKnAnACgEQBcCmAzrtgJQDcQA== <-- example of what top level statements compile into
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
yes
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
yep, the only
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
the only exception to this rule is top level statements
116 replies
CC#
Created by Faker on 1/16/2025 in #help
What is a namespace in C# and why is it important
You should always set an explicit namespace using namespace My.Namespace.Here; syntax
116 replies
CC#
Created by Ras Gulla on 1/15/2025 in #help
Newtonsoft Json not deserializing with some property/constructor names
with a public setter and a parameterless constructor, I see no reason why this shouldnt work
42 replies
CC#
Created by Ras Gulla on 1/15/2025 in #help
Newtonsoft Json not deserializing with some property/constructor names
if it worked, its because your constructor takes a key parameter and newtonsoft figures out that probably maps to the Key property
42 replies
CC#
Created by Ras Gulla on 1/15/2025 in #help
Newtonsoft Json not deserializing with some property/constructor names
thats why Key isnt deserializing properly
42 replies