Click here to Skip to main content
15,880,796 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to replace string with StringBuilder Pin
Aseem Sharma6-Feb-10 0:01
Aseem Sharma6-Feb-10 0:01 
GeneralRe: How to replace string with StringBuilder Pin
OriginalGriff6-Feb-10 0:11
mveOriginalGriff6-Feb-10 0:11 
AnswerRe: How to replace string with StringBuilder Pin
Rob Philpott5-Feb-10 22:02
Rob Philpott5-Feb-10 22:02 
AnswerRe: How to replace string with StringBuilder Pin
#realJSOP5-Feb-10 22:05
mve#realJSOP5-Feb-10 22:05 
QuestionHow to populate textbox by database Pin
scottichrosaviakosmos5-Feb-10 20:00
scottichrosaviakosmos5-Feb-10 20:00 
AnswerRe: How to populate textbox by database Pin
Chetan Patel5-Feb-10 21:59
Chetan Patel5-Feb-10 21:59 
GeneralRe: How to populate textbox by database Pin
Md. Marufuzzaman6-Feb-10 1:14
professionalMd. Marufuzzaman6-Feb-10 1:14 
QuestionCan anybody help me in below code Pin
indian1435-Feb-10 13:15
indian1435-Feb-10 13:15 
Hi All,
Can anybody help me what does the below code do and whats the use of new here. Any link also will be fine.


public abstract class BaseCollection<T> : List<T> where T : BaseEntity, new()
    { 
        public bool MapObjects(DataSet ds)
        {
            if (ds != null && ds.Tables.Count > 0)
            {
                return MapObjects(ds.Tables[0]);
            }
            else
            {
                return false;
            }
        }      
        public bool MapObjects(DataTable dt)
        {
            Clear();
            for (int i = 0; i < dt.Rows.Count; i++)
            {

                T obj = new T();
                obj.MapData(dt.Rows[i]);
                this.Add(obj);
            }
            return true;
        }
    }
Thanks & Regards,

Md. Abdul Aleem
NIIT technologies
modified on Friday, February 5, 2010 7:31 PM

AnswerRe: Can anybody help me in below code Pin
Abhinav S5-Feb-10 13:21
Abhinav S5-Feb-10 13:21 
GeneralRe: Can anybody help me in below code Pin
indian1435-Feb-10 13:35
indian1435-Feb-10 13:35 
AnswerRe: Can anybody help me in below code Pin
Jimmanuel5-Feb-10 14:42
Jimmanuel5-Feb-10 14:42 
AnswerRe: Can anybody help me in below code Pin
Not Active5-Feb-10 15:49
mentorNot Active5-Feb-10 15:49 
QuestionCreating a custom BindingNavigator which include a BindingSource Pin
ArjenGroeneveld5-Feb-10 11:07
ArjenGroeneveld5-Feb-10 11:07 
AnswerRe: Creating a custom BindingNavigator which include a BindingSource Pin
ArjenGroeneveld7-Feb-10 6:09
ArjenGroeneveld7-Feb-10 6:09 
QuestionFastest Method for opening many text files... Pin
UFGrayMatter5-Feb-10 10:43
UFGrayMatter5-Feb-10 10:43 
AnswerRe: Fastest Method for opening many text files... Pin
Keith Barrow5-Feb-10 11:10
professionalKeith Barrow5-Feb-10 11:10 
AnswerRe: Fastest Method for opening many text files... Pin
Luc Pattyn5-Feb-10 11:17
sitebuilderLuc Pattyn5-Feb-10 11:17 
QuestionHow can I get the selected value from a combo box Pin
tonyonlinux5-Feb-10 10:06
tonyonlinux5-Feb-10 10:06 
AnswerRe: How can I get the selected value from a combo box Pin
Not Active5-Feb-10 10:16
mentorNot Active5-Feb-10 10:16 
GeneralRe: How can I get the selected value from a combo box Pin
tonyonlinux5-Feb-10 10:19
tonyonlinux5-Feb-10 10:19 
AnswerRe: How can I get the selected value from a combo box Pin
Luc Pattyn5-Feb-10 11:23
sitebuilderLuc Pattyn5-Feb-10 11:23 
GeneralRe: How can I get the selected value from a combo box Pin
tonyonlinux5-Feb-10 12:52
tonyonlinux5-Feb-10 12:52 
GeneralRe: How can I get the selected value from a combo box Pin
Luc Pattyn5-Feb-10 12:58
sitebuilderLuc Pattyn5-Feb-10 12:58 
QuestionHow does the method work ? Pin
Mohammad Dayyan5-Feb-10 9:02
Mohammad Dayyan5-Feb-10 9:02 
AnswerRe: How does the method work ? Pin
Steve Westbrook5-Feb-10 9:08
Steve Westbrook5-Feb-10 9:08 

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.