J.
J.
Explore posts from servers
CC#
Created by J. on 9/21/2023 in #help
❔ Data breakpoints in MSVS
what frameworks is it known to work on/not work on?
11 replies
CC#
Created by J. on 9/21/2023 in #help
❔ Data breakpoints in MSVS
No description
11 replies
CC#
Created by J. on 9/21/2023 in #help
❔ Data breakpoints in MSVS
this is .NET 6.0
11 replies
CC#
Created by J. on 9/21/2023 in #help
❔ Data breakpoints in MSVS
No description
11 replies
CC#
Created by J. on 9/21/2023 in #help
❔ Data breakpoints in MSVS
Does that affect it? I'm in unity atm, i can try to check if it works with .net
11 replies
CC#
Created by J. on 9/15/2023 in #help
❔ Lambda expressions in C#
I can probably can ask it for the answers too to check my practice
22 replies
CC#
Created by J. on 9/15/2023 in #help
❔ Lambda expressions in C#
oh, I didn't think of GPT
22 replies
CC#
Created by J. on 9/15/2023 in #help
❔ Lambda expressions in C#
i want to practice writing them, i just don't have exercises to start writing if it maeks sense
22 replies
CC#
Created by J. on 9/15/2023 in #help
❔ Lambda expressions in C#
I've practiced with LINQ and Java .stream() functional programming methods before, but they aren't the same as doing something like
IEnumerator StopConditionCheck(System.Func<bool> condition)
{
yield return new WaitUntil(condition);

StopAnimation();
}
IEnumerator StopConditionCheck(System.Func<bool> condition)
{
yield return new WaitUntil(condition);

StopAnimation();
}
as well as calling this type of method with lambdas While I'm aware that this also involves coroutines (which are probably confusing me further), I feel really stumped whenever I see syntax like this. I'd like to be able to read/write this type of stuff on snap reaction rather than taking 20 seconds to brain
22 replies
CC#
Created by J. on 9/13/2023 in #help
❔ MSVS- List in Immediate Window
bump
4 replies
CC#
Created by J. on 9/12/2023 in #help
❔ Syntactical Difference In Azure Function Scripts
found out it's Isolated Mode Syntax vs In Process mode syntax. am even more confused now
3 replies
CC#
Created by J. on 9/7/2023 in #help
❔ WebSocketSharp and Azure Endpoint (Error 1006)
IsWebSocketUrlReachable(url); is a ping function I implemented to test the reachability of the ws address. It always returns true, which further mystifies me.
public bool IsWebSocketUrlReachable(string url) {
try {
Uri uri = new Uri(url);
string host = uri.Host;

using (Ping ping = new Ping()) { //use SystemNetworkingInformation Ping (not Unit's object)
PingReply reply = ping.Send(host);

if (reply.Status == IPStatus.Success) {
Debug.Log("Can reach the WebSocket server!");
return true;
}
else {
Debug.Log("CANNOT reach the WebSocket server!");
return false;
}
}
}
catch (Exception) {
// An exception occurred (e.g., invalid URL)
return false;
}
}
public bool IsWebSocketUrlReachable(string url) {
try {
Uri uri = new Uri(url);
string host = uri.Host;

using (Ping ping = new Ping()) { //use SystemNetworkingInformation Ping (not Unit's object)
PingReply reply = ping.Send(host);

if (reply.Status == IPStatus.Success) {
Debug.Log("Can reach the WebSocket server!");
return true;
}
else {
Debug.Log("CANNOT reach the WebSocket server!");
return false;
}
}
}
catch (Exception) {
// An exception occurred (e.g., invalid URL)
return false;
}
}
3 replies