C# language
I understand the basics of handling properties from classes declared by yourself using {get, set}.
I would like to know how to handle properties of classes already declared by C#, i.e. System.Console.Foreground.
Could anyone help with an example or two?
Gracias
C# handling properties
Using System.Console.Foreground do you mean like this:
I am not a programmer and what little I do I generally do in VB.
Ron
Code: Select all
using System;
public class Test{
static void Main(string[] args){
Console.Title = "Standard Console";
Console.ForegroundColor = ConsoleColor.Red;
Console.BackgroundColor = ConsoleColor.Green;
Console.WriteLine("Press Enter to change the Console's appearance.");
Console.ReadLine();
}
}
Ron
Who is online
Users browsing this forum: No registered users and 62 guests