Stefanidze
Stefanidze
CC#
Created by Stefanidze on 10/20/2024 in #help
✅ Working with npm in razor pages with vscode
thank you so much, this works perfectly!
10 replies
CC#
Created by Stefanidze on 10/20/2024 in #help
✅ Working with npm in razor pages with vscode
so... i just download the file and it into wwwroot?
10 replies
CC#
Created by Stefanidze on 10/20/2024 in #help
✅ Working with npm in razor pages with vscode
showdown npm package to use with my website
10 replies
CC#
Created by Stefanidze on 7/24/2024 in #help
✅ How do async methods handle references
I guess my question is answered
28 replies
CC#
Created by Stefanidze on 7/24/2024 in #help
✅ How do async methods handle references
Thanks everyone, i learned a lot of new stuff today :)
28 replies
CC#
Created by Stefanidze on 7/24/2024 in #help
✅ How do async methods handle references
Ok, i think i understand, because of concurrent execution there may be pointer corruption so no pointers pointing to the values inside the object are allowed, only pointers to objects themselves
28 replies
CC#
Created by Stefanidze on 7/24/2024 in #help
✅ How do async methods handle references
method can return before the underlying async method is completed? and the memory for the pointer will be freed up/disposed before the operation on it is completed
28 replies
CC#
Created by Stefanidze on 7/24/2024 in #help
✅ How do async methods handle references
Well, that's nice to know, still, why managed pointers are not allowed while native pointers work just as fine?
28 replies
CC#
Created by Stefanidze on 7/24/2024 in #help
✅ How do async methods handle references
Well aren't most objects passed use a pointer? I'm not asking why ref parameters aren't allowed in async methods, it's just if i do:
public static void Main(){
var _mydata = new MyData();
Test(_mydata);
Console.WriteLine(_mydata.Variable)
}
public static void Test(MyData object){
object.Varible = 10;
}
public class MyData{
public int Variable { get; set; }
}
public static void Main(){
var _mydata = new MyData();
Test(_mydata);
Console.WriteLine(_mydata.Variable)
}
public static void Test(MyData object){
object.Varible = 10;
}
public class MyData{
public int Variable { get; set; }
}
I expect to get a result of 10 (am i wrong here?) So if i do
public async Task Main(){
var _mydata = new MyData();
await Test(_mydata);
Console.WriteLine(_mydata.Variable)
}
public async Task Test(MyData object){
object.Varible = 10;
await Task.CompletedTask;
}
public class MyData{
public int Variable;
}
public async Task Main(){
var _mydata = new MyData();
await Test(_mydata);
Console.WriteLine(_mydata.Variable)
}
public async Task Test(MyData object){
object.Varible = 10;
await Task.CompletedTask;
}
public class MyData{
public int Variable;
}
Will the output be any different?
28 replies
CC#
Created by Moneylover3246 on 6/18/2024 in #help
Making 2d world generation deterministic
But you will only be able to generate chunks continuously, so add some king of stopping mechanism so the chunks whouldn't get generated two times
22 replies
CC#
Created by Moneylover3246 on 6/18/2024 in #help
Making 2d world generation deterministic
And about the continious generation model, store all the data on what to generate next in every chunk's corner, and then check for it when continuing generation
22 replies
CC#
Created by Moneylover3246 on 6/18/2024 in #help
Making 2d world generation deterministic
Or the player creates the "ghost chunks" in places within their render distance and they ask the generator to be generated on creation
22 replies
CC#
Created by Moneylover3246 on 6/18/2024 in #help
Making 2d world generation deterministic
You either fill the map with "ghost chunks" that ask the code to be generated when the player enters proximity
22 replies
CC#
Created by Moneylover3246 on 6/18/2024 in #help
Making 2d world generation deterministic
Well how would you imagine it not doing so? I think you should store the noisemap somewhere and then generate chunks based on that and the coords of the chunk being generated
22 replies
CC#
Created by changffof on 6/13/2024 in #help
HELP TO RUN .EXE FILE //
Have you tried supplying the full path to the object?
9 replies
CC#
Created by changffof on 6/13/2024 in #help
HELP TO RUN .EXE FILE //
well
9 replies
CC#
Created by changffof on 6/13/2024 in #help
HELP TO RUN .EXE FILE //
Well, what kind of error do you get?
9 replies
CC#
Created by vibing subs on 4/7/2024 in #help
I need help with my password generator and checking project. It uses c-sharp forums
Well, what's your question? What in particular do you need help with?
20 replies
CC#
Created by vibing subs on 4/7/2024 in #help
I need help with my password generator and checking project. It uses c-sharp forums
$details
20 replies
CC#
Created by eduardoA on 4/4/2024 in #help
My shell items are trasparent
Can you please send the code? Also, what ui lib are you using?
7 replies