Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
QuestionWorkbookEvents_SheetChangeEventHandler excel delegate Pin
NarVish24-Aug-09 2:16
NarVish24-Aug-09 2:16 
QuestionCollection properties should be readonly. Pin
deep724-Aug-09 1:47
deep724-Aug-09 1:47 
AnswerRe: Collection properties should be readonly. Pin
Henry Minute24-Aug-09 2:07
Henry Minute24-Aug-09 2:07 
GeneralRe: Collection properties should be readonly. Pin
Luc Pattyn24-Aug-09 3:26
sitebuilderLuc Pattyn24-Aug-09 3:26 
AnswerRe: Collection properties should be readonly. Pin
harold aptroot24-Aug-09 2:08
harold aptroot24-Aug-09 2:08 
GeneralRe: Collection properties should be readonly. Pin
Luc Pattyn24-Aug-09 3:27
sitebuilderLuc Pattyn24-Aug-09 3:27 
GeneralRe: Collection properties should be readonly. Pin
harold aptroot24-Aug-09 3:38
harold aptroot24-Aug-09 3:38 
AnswerRe: Collection properties should be readonly. [modified] Pin
Luc Pattyn24-Aug-09 2:11
sitebuilderLuc Pattyn24-Aug-09 2:11 
Hi,

FYI: cops aren't always right, and you can change the rules if you don't like them.

The MSDN example looks OK.

You must choose between 2 possibilities:

1. SomeStrings has no setter, and collection.SomeStrings = newCollection; does not compile,
however you can use Clear() and AddRange() instead, as suggested by the MSDN page.

2. SomeStrings has a setter, collection.SomeStrings = newCollection; works, and unmodified FXCop complains, however FXCop with a new or modified rule could be made to agree


Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

modified on Monday, August 24, 2009 9:23 AM

AnswerRe: Collection properties should be readonly. Pin
Super Lloyd24-Aug-09 3:40
Super Lloyd24-Aug-09 3:40 
Question.NET Remoting...how to? Pin
DIPAK@EMSYS24-Aug-09 1:13
DIPAK@EMSYS24-Aug-09 1:13 
Questionproblem in adding rows to datagrid Pin
myinstincts24-Aug-09 1:07
myinstincts24-Aug-09 1:07 
AnswerRe: problem in adding rows to datagrid Pin
DIPAK@EMSYS24-Aug-09 1:56
DIPAK@EMSYS24-Aug-09 1:56 
GeneralRe: problem in adding rows to datagrid Pin
DIPAK@EMSYS24-Aug-09 1:59
DIPAK@EMSYS24-Aug-09 1:59 
QuestionMS-Charts Pin
hhazan24-Aug-09 0:32
hhazan24-Aug-09 0:32 
AnswerRe: MS-Charts Pin
Dave Kreskowiak24-Aug-09 3:46
mveDave Kreskowiak24-Aug-09 3:46 
Questiondelete Pin
nhqlbaislwfiikqraqnm24-Aug-09 0:08
nhqlbaislwfiikqraqnm24-Aug-09 0:08 
GeneralRe: Firefox Password Backup program! Pin
harold aptroot24-Aug-09 0:29
harold aptroot24-Aug-09 0:29 
AnswerRe: Firefox Password Backup program! Pin
stancrm24-Aug-09 0:30
stancrm24-Aug-09 0:30 
GeneralMessage Closed Pin
24-Aug-09 0:56
nhqlbaislwfiikqraqnm24-Aug-09 0:56 
GeneralRe: Firefox Password Backup program! Pin
nhqlbaislwfiikqraqnm24-Aug-09 1:02
nhqlbaislwfiikqraqnm24-Aug-09 1:02 
GeneralRe: Firefox Password Backup program! Pin
stancrm24-Aug-09 1:05
stancrm24-Aug-09 1:05 
GeneralRe: Firefox Password Backup program! [modified] Pin
nhqlbaislwfiikqraqnm24-Aug-09 1:21
nhqlbaislwfiikqraqnm24-Aug-09 1:21 
GeneralRe: Firefox Password Backup program! Pin
nhqlbaislwfiikqraqnm26-Aug-09 3:36
nhqlbaislwfiikqraqnm26-Aug-09 3:36 
QuestionMultiline Textbox Pin
Nekkantidivya23-Aug-09 23:59
Nekkantidivya23-Aug-09 23:59 
AnswerRe: Multiline Textbox Pin
Henry Minute24-Aug-09 0:06
Henry Minute24-Aug-09 0:06 

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.