Consider this class:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Game.Items
{
class Item
{
private string name;
public string Name
{
get { return this.name; }
}
private string description;
public string Description
...
I want to build simple console applications, but want something like QT and not like ncurses. Is there such a thing or is it only my dream UI?
...
I have the follwing code that provides an auto refresh feature to a WCF Console Hosted Application.
When the Console.ReadKey accepts an invalid character, it restarts the ReadKey method. If the user mashes the keyboard long enough on this code it will go into a StackOverflowException.
Does anyone have a way to re-write this code so th...
Is there any setting in Coda, or hackable solution, to get the JavaScript Console log to automatically clear itself after page reload?
I often stumble when I see old errors in the log, that doesn't still exist.
...
I know of the ruby gem "ruby-debug" that allows you to place a debugger call inside your code. Using it, it's possible to have breakpoints in your code.
I used script/console a bit for some tests, and I would like to know if I can call it from my code.
Thanks !
EDIT:
here is some sample ruby code
require "ruby-debug"
[1,2,3,4,5]....
hello, i have an application which call another console application and pass to it some parameters (console app is a video/audio coverter app) ... is there a way to programmatically "spy" or catch the passed paramters other than hooking/monitoring shellexecute/CreateThread etc ?
...
Hello,
I've been trying to solve this for ages (3 days) now and I just cannot figure it out. I will try to explain the problem comprehensively because it is a bit more complex.
My school assignement is to create a simple text game using OOP in C# Visual Studio 2008 (should be built on a library the teacher provided for us). It should o...
I am a C++ user and now trying to use c#.
In c++ taking input from the user was fun (just >>) and supported all the types. So was for the files. But in c# it is too complex, as I can take only strings. Then I have to manipulate it for later use.
And if I want to take multiple inputs in same line separated by whitespaces, it become more...
I have recently programmed a console application and I've experienced a lot of pain in designing it in many aspects, particularly in C#, given its pure OO paradigm. Questions I have faced include anything from how to pass the options to how to return problems to the entry point class, among many, many others.
My question is: would any o...
How can I write a console application that prompts me and lets me enter LINQ expressions and it will spit out the results of that LINQ query?
What would be the easiest way to parse/evaluate a incoming string as a LINQ expression?
...
I wrote a console program in c# that takes up to three files as input, and does some data calculations on them.
I'd like to make a simple frontend that allows the user to easily
*import files - basically choose up to three files to be routed to the backend code
*change settings - i have about 10 settings that i'm currently storing in ...
What is the correct way to implement and architect a command line tool as a C# console application?
Concerns to address include proper parsing of command line variables, and the proper way to output text. While Console.WriteLine() is the most obvious choice for output, what are the circumstances in which one should instead opt to write...
I'm writing a console program that can accept 1 to 3 files.
I'm using OpenFileDialog three times to accept the files, but the second time and third the file dialog is behind the console window, making it hard to notice. Any way to get it to appear above?
An image of the problem:
http://img205.imageshack.us/img205/5312/problemr.png
The ...
I have a console app, and I would like to find the application's path.
In winforms I can use Application.StartupPath to find the current path, but this doesn't seem to be available in a console app?
...
I'm using the Scanner class to take some input from the user through the console. Whenever the user inputs something in the screen and presses enter the input stays on screen for example:
This is the prompt
// User writes command and presses enter
command
output of command goes here
//Use writes command3
command
output of command ...
Hello,
Today has been a headache - first my upgrade to xcode 3.1.3 trashed all my certs/provisions. After two attempts, I got them fixed.
Now, I'm dealing with the issue in the subject, no console output.
Absolutlely nothing is getting printed to the console - No startup info, not when I "print" a variable from xcode when stopped on a ...
Hi,
Whenever I start my console gnome-terminal in Ubuntu, it starts in the home directory. How can I make it start in a different directory say ~/myfolder?
I tried to write cd ~/myfolder in ~/.profile but nothing happens.
...
i have windows forms application wich runs another console application
here is the part of code
prog = new Process();
prog.StartInfo.FileName = exefile;
the console application should create file but when running that application from C# it doesn't creates any file
when im running console application with double click it works fine
he...
Hey guys,
I am writing a server app and I want it to be console based. I need the user to be able to input different commands, but at the same time there is a possibility that something will be output to the console while the user is writing. This messes the buffer up. Is there any clean way of doing this?
Thanks.
...
Is there a method built in to .NET that can write all the properties and such of an object to the console? Could make one using reflection of course, but I'm curious to if this already exists... especially since you can do it in Visual Studio in the Immediate Window. There you can an object name (while in debug mode), press enter, and it...