Click here to Skip to main content
15,890,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: Form Inheritance Pin
MarkB7779-Jun-08 16:16
MarkB7779-Jun-08 16:16 
GeneralRe: Form Inheritance Pin
Dirso10-Jun-08 2:05
Dirso10-Jun-08 2:05 
GeneralRe: Form Inheritance Pin
MarkB77710-Jun-08 2:28
MarkB77710-Jun-08 2:28 
GeneralRe: Form Inheritance Pin
Dirso10-Jun-08 2:47
Dirso10-Jun-08 2:47 
GeneralRe: Form Inheritance Pin
MarkB77710-Jun-08 2:59
MarkB77710-Jun-08 2:59 
GeneralRe: Form Inheritance Pin
Dirso10-Jun-08 10:30
Dirso10-Jun-08 10:30 
GeneralRe: Form Inheritance (still can't edit) Pin
Dirso10-Jun-08 12:20
Dirso10-Jun-08 12:20 
QuestionCalling an Extension method from another Extension method (C# 3.0) Pin
Rajesh Moriyani9-Jun-08 12:43
Rajesh Moriyani9-Jun-08 12:43 
Is it possible/valid to call an extension(ext.) method from another ext. method?

Like I've two ext. methods which extend DataContext class : (1) SaveEntity(this DataContext dc, T Entity) & (2) SaveCollection(this DataContext dc, List<T> Colln)

I want to call SaveEntity method from(within) SaveCollection method in a foreach loop like :

foreach(T entity in Colln)
{
if(entity.IsNew) dc.SaveEntity(entity);
if(entity.IsModified) dc.SaveEntity(entity);
....
}

I've tried with various syntax-combinations for calling "SaveEntity" from "SaveCollection" method but end up with compilation-errors.

Will appreciate if someone can let me know (or direct to some link) if this is a valid/supported-feature and if yes, what could be the syntax for calling "SaveEntity" method.

Thanks for reading this & your replies,

Rajesh Moriyani
rkmoriyani@gmail.com
AnswerRe: Calling an Extension method from another Extension method (C# 3.0) Pin
jamie5509-Jun-08 13:08
jamie5509-Jun-08 13:08 
AnswerRe: Calling an Extension method from another Extension method (C# 3.0) Pin
Tariq A Karim9-Jun-08 16:39
Tariq A Karim9-Jun-08 16:39 
Questionacessing an id from object sender Pin
brsecu9-Jun-08 10:55
brsecu9-Jun-08 10:55 
AnswerRe: acessing an id from object sender Pin
Edmundisme9-Jun-08 11:07
Edmundisme9-Jun-08 11:07 
GeneralRe: acessing an id from object sender Pin
brsecu10-Jun-08 2:05
brsecu10-Jun-08 2:05 
QuestionDatatable query Pin
NewToAspDotNet9-Jun-08 9:24
NewToAspDotNet9-Jun-08 9:24 
QuestionCAPTCHA Custom Server Control Pin
rgfirefly249-Jun-08 9:24
rgfirefly249-Jun-08 9:24 
AnswerRe: CAPTCHA Custom Server Control Pin
Christian Graus9-Jun-08 13:23
protectorChristian Graus9-Jun-08 13:23 
GeneralRe: CAPTCHA Custom Server Control Pin
rgfirefly2410-Jun-08 5:06
rgfirefly2410-Jun-08 5:06 
QuestionHow to Select All CheckBoxes while GridView paging is allowed? Pin
nature02769-Jun-08 8:12
nature02769-Jun-08 8:12 
AnswerRe: How to Select All CheckBoxes while GridView paging is allowed? Pin
Member 84594004-Dec-11 19:47
Member 84594004-Dec-11 19:47 
QuestionHashtable containing DataTables [modified] Pin
steven33119-Jun-08 8:08
steven33119-Jun-08 8:08 
QuestionHow to create an undo function in a picturebox?(Console Application,using windows form) [modified] Pin
MrAdar9-Jun-08 7:46
MrAdar9-Jun-08 7:46 
AnswerRe: How to create an undo function in a picturebox?(Console Application,using windows form) Pin
Pete O'Hanlon9-Jun-08 9:16
mvePete O'Hanlon9-Jun-08 9:16 
AnswerRe: How to create an undo function in a picturebox?(Console Application,using windows form) Pin
Edmundisme9-Jun-08 11:09
Edmundisme9-Jun-08 11:09 
AnswerRe: How to create an undo function in a picturebox?(Console Application,using windows form) Pin
Christian Graus9-Jun-08 13:22
protectorChristian Graus9-Jun-08 13:22 
QuestionC# TreeView Control: How to color the nodes from the parent node to the last selected child node Pin
nikhilkardale9-Jun-08 7:35
nikhilkardale9-Jun-08 7:35 

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.