Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Shann

@Shann
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • thread safe calls
    S Shann

    Consider using class Monitor

    C# tutorial

  • newbie: do you ever define a class within a class ( Class A { Class B {} })?
    S Shann

    A simple resolution:

    using System;
    using System.Collections;
    using System.Text;

    namespace EnumFreezingInRun
    {
    // this gives error "The name Temperature does not exist in the current context"
    // - now does not
    class Tester
    {
    class Values
    {
    public enum Temperatures // note changes here
    {
    WickedCold = 0,
    FreezingPoint = 32,
    }
    }

    public void Run()
    {
    Console.WriteLine("Freezing is: {0}", (int)Values.Temperatures.FreezingPoint); // here
    Console.WriteLine("Wicked cold is: {0}", Values.Temperatures.WickedCold); // and here
    }

    static void Main()
    {
    Tester t = new Tester();
    t.Run();
    }
    }
    }

    C# help tutorial question learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups