The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Der Unterschied zwischen const und static readonly!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
-

Posts: 1524
Nickname: nitronic
Registered: Jul, 2006

Norbert Eder works as a software architect.
Der Unterschied zwischen const und static readonly! Posted: Dec 4, 2006 3:50 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by -.
Original Post: Der Unterschied zwischen const und static readonly!
Feed Title: Norbert Eder - Living .NET
Feed URL: http://feeds.feedburner.com/NorbertEder-Livingnet
Feed Description: Copyright (c)2005, 2006 by Norbert Eder
Latest .NET Buzz Posts
Latest .NET Buzz Posts by -
Latest Posts From Norbert Eder - Living .NET

Advertisement
const
Mit const definierte Werte werden mit der Kompilierung als Konstanten ausgewiesen und sind danach nicht mehr ver��nderbar.

static readonly
Diese "Markierung" erfolgt zur Laufzeit. Damit ausgekennzeichnete Werte k��nnen zur Laufzeit innerhalb der eigenen Klasse modifiziert werden.

static readonly wird haupts��chlich verwendet, wenn der gew��nschte Typ nicht als const deklariert werden darf, oder wenn der Wert erst zur Laufzeit bekannt ist.

Read: Der Unterschied zwischen const und static readonly!

Topic: Return of the SmartPart Previous Topic   Next Topic Topic: Partner Sponsorship at the SharePoint Conference 2007

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use