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
P

pherschel

@pherschel
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • c# Const vs. Readonly, Scope, Usings
    P pherschel

    I can't do this either :(( const DateTime tick = new DateTime(2001, 1, 1);

    - Pete

    The Lounge csharp database visual-studio business json

  • c# Const vs. Readonly, Scope, Usings
    P pherschel

    True enough. I'd love to banish usings somehow. I want to use a create & use an class, not manage it's lifetime.

    - Pete

    The Lounge csharp database visual-studio business json

  • c# Const vs. Readonly, Scope, Usings
    P pherschel

    With C# getting to version 7+ I wish I could have some basic improvments. Is it me or do you get confused by this? Why can't I say

    const DateTime today = DateTime.Now;

    I can see readonly for parameters and such, but I would be happy using const there too

    void Doit(const MyObj arg) ...

    For properties, why can't I hide the worker variable for the rest of the class?

    public int PageNbr
    {
    int _worker = 9;

    get { return _worker;}
    set { _worker = value; }
    }

    For destructors, why can't you give me option to destroy right away? I hate disposing with all its using code bloat. How about a free keyword on a variable or something to get me out of the business of resource management. If you open a file and a DB you have to nest usings before you even get started doing some work! Or maybe I'm missing something?

    - Pete

    The Lounge csharp database visual-studio business json

  • System Requirements for VS
    P pherschel

    I agree. Plus you can backup/snapshot the VM before major updates / code changes.

    - Pete

    The Lounge visual-studio sysadmin windows-admin business

  • C# 4.0
    P pherschel

    I'd like to see built in threading. Example: int x = CalcXDataValues() &; <- run as thread int y = CalcYDataValues() &; int z = x + y; // will not execute until x and y are set!

    - Pete

    The Lounge csharp question discussion announcement
  • Login

  • Don't have an account? Register

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