I figured this might be a good place to ask this question. I'll repost a comment I made on /r/programming in a thread about Mono: I'm currently working on a team developing a distributed server application in .NET, and we tried to run it on Mono early this year. There were some portability headaches with […]
Month: September 2015
Using static class to return folders and files for particular objects, should I just return string or FileInfo/DirInfo? How to use :this() with constructor?
Question1) I'm created a bunch of extension methods in a static class to return files/folders. They do an exists check and create the file/folder if it fails. I've always simply returned a string with the fullpath. But I was trying to plan of future and started return FileInfo/DirInfo objects. Is this a waste? Presently, I'm […]
[HELP] Drawing code is too fast, I want the user to see what is going on.
For simplicity, you click a spot, an image is placed there, then calculations are done. If the calculations conclude the image placed is not correct (by rules of the game), then it removes the image. I want the user to see the image placed then removed, but the coding runs through and places and removes […]
How to acces weather api url information?
I use void Start() { string url = "http://ift.tt/1KL6TfJ"; WWW www = new WWW(url); StartCoroutine(WaitForRequest(www)); } IEnumerator WaitForRequest(WWW www) { yield return www; // check for errors if (www.error == null) { Debug.Log("WWW Ok!: " + www.text); } else { Debug.Log("WWW Error: " + www.error); } } To get the following information in my console: […]
Little game for practise, need a list of enemies
So I've done a couple weeks of CS50 and I'm trying to make a small game in c#. The game is just to show what I can do. However I'm trying to make several enemies instead of just one and I'm not finding the solution that I need. Hopefully some of you can point me […]
XAML Goodies – Relative Position Panel (Universal App, WPF, Windows Phone, Silverlight)
http://ift.tt/1Ggae23 by hig030 via /r/csharp
How can I update the URL to reflect state in a single page web app?
So I'm trying to figure out an approach to a broad problem (that I expect is too broad for SO). I have a single page web application (well two, actually) that consists of a JS frontend that takes some text parameters, sends them to a C# Web API, and produces some sort of dynamically generated […]
creating endless colored text
I need to generate endless text running on the console, but I need it to be in both different foreground and background colors and show up in random locations on the console. I'm new to C# and could use some help. I know it will involve a while loop and the use of a random […]
I created a collection of awesome Linq libraries, tools, and more. What resources have I forgotten? How can I enhance this list?
http://ift.tt/1OEUqy2 by aloisdg via /r/csharp