JenyaRostov
JenyaRostov
CC#
Created by Louken on 6/13/2024 in #help
✅ How to read from glsl (shader) file
right click on file in solution -> copy to output folder always
19 replies
CC#
Created by </> on 12/16/2023 in #help
✅ logo application c#
i presume on the exe file ?
13 replies
CC#
Created by jotalanusse on 11/17/2023 in #help
Processing files as fast as possible
icic
39 replies
CC#
Created by jotalanusse on 11/17/2023 in #help
Processing files as fast as possible
that span can be allocated on the stack with stackalloc if you want to, that's practically free to do with constant size parameter
39 replies
CC#
Created by jotalanusse on 11/17/2023 in #help
Processing files as fast as possible
you can either load the entire file with File.ReadAllBytes and then process it one chunk at a time with Memory<T> or you can use FileStream and read n bytes at a time using Read method with Span<byte> overload
39 replies
CC#
Created by Cheetah on 8/6/2023 in #help
Ok so i DID NOT add hello world to my code but it still appears
doesn't visual studio prompt you to run last successfully compiled code
48 replies
CC#
Created by 「 V E L D 」 on 6/29/2023 in #help
❔ How to make a method returning type T but only taking subclasses of a certain class ?
could go even further and maybe do something like
public T GetAsset<T>(string name) where T : UnityEngine.Object
{
var type = typeof(T);
if(!CachedAssets.ContainsKey(type))
throw(...);
return CachedAssets[type][name];
}
public T GetAsset<T>(string name) where T : UnityEngine.Object
{
var type = typeof(T);
if(!CachedAssets.ContainsKey(type))
throw(...);
return CachedAssets[type][name];
}
where CachedAssets is
Dictionary<Type,Dictionary<string,UnityEngine.Object>>
Dictionary<Type,Dictionary<string,UnityEngine.Object>>
This way if you have a new asset type you want to cache you just add a key-value pair to CachedAssets dictionary
64 replies
CC#
Created by Nutter on 6/20/2023 in #help
.NET maui not allowing me to access parts of class when binding data?
shouldn't ImageArray be public?
2 replies
CC#
Created by JenyaRostov on 6/3/2023 in #help
debug help
no i don't really need pdbs what im saying is that i need to debug updating my library multiple times quickly preferably without bumping the nuget version
17 replies
CC#
Created by JenyaRostov on 6/3/2023 in #help
debug help
yeah, but another question is for example i cloned one of these projects and want to debug it with my library i update the library code and how should i update this project dependency?
17 replies
CC#
Created by JenyaRostov on 6/3/2023 in #help
debug help
all projects depend on the nuget library version
17 replies
CC#
Created by JenyaRostov on 4/19/2023 in #help
❔ Weird SocketAsyncEventArgs server behaviour
figured this out, HttpClient first tries to connect using ipv6 and then succeeds using ipv4
4 replies
CC#
Created by JenyaRostov on 4/19/2023 in #help
❔ Weird SocketAsyncEventArgs server behaviour
I'm also using HttpClient to connect to my server, i can't reproduce it using Postman or firefox for example
4 replies