Click here to Skip to main content
15,893,644 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regions/Search/String Table Pin
Kant11-May-03 14:02
Kant11-May-03 14:02 
General[Serializable()] Pin
Anonymous11-May-03 4:32
Anonymous11-May-03 4:32 
GeneralRe: [Serializable()] Pin
leppie11-May-03 4:56
leppie11-May-03 4:56 
GeneralRe: [Serializable()] Pin
Anonymous11-May-03 5:28
Anonymous11-May-03 5:28 
QuestionDataView override? Pin
Rocky Moore10-May-03 23:40
Rocky Moore10-May-03 23:40 
AnswerRe: DataView override? Pin
leppie11-May-03 4:36
leppie11-May-03 4:36 
GeneralRe: DataView override? Pin
Rocky Moore12-May-03 0:29
Rocky Moore12-May-03 0:29 
GeneralBest way to declare a protected set prop for read-only prop Pin
J. Dunlap10-May-03 19:10
J. Dunlap10-May-03 19:10 
What is the proper way to declare a protected set procedure for a read-only property, so that other objects in the same assembly can write as well as read?

I've thought of a couple:
//here's the read-only get procedure:
public object TheProperty
{
   get
   {
   }
}

//set #1
protected object _TheProperty
{
  set
  {
  }
}
  
//#2
protected object theproperty
{
  set
  {
  }
}
  
//#3
protected object pr_TheProperty
{
  set
  {
  }
}
 
//#4
protected void SetTheProperty(object newvalue)
{
}


Which of these would be the best (and feel free to suggest your own Smile | :) )?


"Do unto others as you would have them do unto you." - Jesus

"An eye for an eye only makes the whole world blind." - Mahatma Gandhi







GeneralRe: Best way to declare a protected set prop for read-only prop Pin
leppie11-May-03 4:28
leppie11-May-03 4:28 
GeneralRe: Best way to declare a protected set prop for read-only prop Pin
J. Dunlap11-May-03 8:27
J. Dunlap11-May-03 8:27 
GeneralWhere can I find the C# language API. Pin
KBeutler10-May-03 11:30
KBeutler10-May-03 11:30 
GeneralRe: Where can I find the C# language API. Pin
David Stone10-May-03 12:38
sitebuilderDavid Stone10-May-03 12:38 
GeneralHard disk number Pin
BoudewijnEctor10-May-03 9:33
BoudewijnEctor10-May-03 9:33 
GeneralRe: Hard disk number Pin
jhaga11-May-03 6:07
professionaljhaga11-May-03 6:07 
GeneralRe: Hard disk number Pin
BoudewijnEctor12-May-03 10:35
BoudewijnEctor12-May-03 10:35 
GeneralRe: Hard disk number Pin
Bo Hunter12-May-03 14:09
Bo Hunter12-May-03 14:09 
GeneralAccessing File Properties "Summary "Tab Info Pin
Grant11110-May-03 9:13
Grant11110-May-03 9:13 
GeneralRe: Accessing File Properties "Summary "Tab Info Pin
Stephane Rodriguez.10-May-03 19:26
Stephane Rodriguez.10-May-03 19:26 
GeneralAutoScroll ruin GDI Pin
israeli10-May-03 7:25
israeli10-May-03 7:25 
GeneralRe: AutoScroll ruin GDI Pin
leppie11-May-03 4:32
leppie11-May-03 4:32 
GeneralRe: AutoScroll ruin GDI Pin
Wesner Moise11-May-03 8:58
Wesner Moise11-May-03 8:58 
General.NET decompilers Pin
Stephane Rodriguez.10-May-03 5:00
Stephane Rodriguez.10-May-03 5:00 
GeneralRe: .NET decompilers Pin
David Stone10-May-03 5:10
sitebuilderDavid Stone10-May-03 5:10 
GeneralRe: .NET decompilers Pin
leppie10-May-03 6:48
leppie10-May-03 6:48 
GeneralRe: .NET decompilers Pin
Nick Parker11-May-03 4:13
protectorNick Parker11-May-03 4:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.