Browse by Tags

Related Posts

  • Enumerate on Generic List, List<T>

    I'm trying to use a List<T>.Enumerator on a list of custom objects and the enumerators MoveNext() returns true but Current never gets populated with any item from the list. The foreach works fine but I can't use that because I need to loop within a WF workflow so I'm forced to use a...
    Posted to C# (Forum) by garmang09 on 05-29-2009, 12:00 AM
    Filed under: Generics, List Class
  • Deployment project can compile when view is strongly typed to List<string>

    I need to deploy an ASP.NET MVC project, and I use the web deployment projects to do so. The app compiles and runs fine, but the deployment project has a problem with a strongly typed view in the project. it is of type System.Web.Mvc.ViewPage<List<string>> and the error message is: Could...
    Posted to ASP.NET MVC (Forum) by random0xff on 02-18-2009, 12:00 AM
    Filed under: MVC, viewpage, deploying mvc applications, generics
  • c# code pasteing

    This is just to mention that the c# code paste does not paste in the Generics part of code see this post here Validation shows me the errors in english and not in spanish compare davidebb post and my ( sjnaughton ) post and the OfType() method which is missing the <DataTypeAttribute>. I have manually...
    Posted to Feedback on this website (Forum) by sjnaughton on 12-29-2008, 12:00 AM
    Filed under: c# paste, Generics
  • Problems with runtime specification of generic type T in User Control

    Hi, I have a web user control that needs to populate itself using a generic object. The type of that generic object will need to be passed into the user control using a parameter. The code I have tried is as follows, but the compiler fails stating: the type arguments for method 'GetQuestion<T>...
    Posted to Architecture (Forum) by cchamberlain1976 on 11-14-2008, 12:00 AM
    Filed under: C#, Generics, User Control
  • Generic return type.. help needed

    Hi: I am trying my hand on generics and I was struck when I prepared a method that returns a generic type. Here is the sample: private M testmethod<T,M>(IList<T> request) { IDictionary<int, string> dict = new Dictionary<int, string>(); foreach (testclass myclass in (IList<testclass>...
    Posted to C# (Forum) by sashee on 10-23-2008, 12:00 AM
    Filed under: generics
  • Re: Typed ViewPage Using Generics Without Code Behind

    Looks like removing code-behind file and decalring inheriting class on .aspx/.ascx page itself doesn't bring any value. Because intellisense doesn't work in this scenario. Let's vote for this bug: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=104071 Maybe...
    Posted to ASP.NET MVC (Forum) by koistya on 10-21-2008, 12:00 AM
    Filed under: code-behind, generics, intellisense, inherits
  • SqlBulkCopy or alternative to copy a generic list to DB table

    Hi, i have a generic list of custom class, i want to insert all list items into a table in the database was thinking using SqlBulkCopy but i can get it to work, any idea if this can be done? or is there an alternative way of inserting mulitpile records to the database in one command / connection. thanks...
    Posted to Web Forms (Forum) by sharonbh on 09-24-2008, 12:00 AM
    Filed under: sql, SqlBulkCopy, bulk uploading, generics
  • Re: generics, inheritance ..... frustrated

    I was annoyed about it too. Apparently also some Microsoft people was, so at least they made a convertion function you can call, ConvertAll(), but you have to implement a convert function yourself. See this post: http://rasor.wordpress.com/2008/08/19/cast-a-generic-list-c/ The code would be more readable...
    Posted to Visual Basic .NET (Forum) by rasor on 08-27-2008, 12:00 AM
    Filed under: vb.net2.0, Visual Basic .NET, .NET, c#, collections, Generics, lists, generic collections
  • Disadvantages of Generic Classes

    I know that generics have a performance advantage over classes that use boxing & unboxing, but is there any disadvantages in performance or any other aspects of using generic classes over the normal classes which use explicit data types? Thanks in advance
    Posted to Architecture (Forum) by net fan on 08-25-2008, 12:00 AM
    Filed under: Generics
  • Dynamically Loaded UserControls

    Background I have a multi-project solution which contains a Web Application project with a single class - SettingsManagementBase. This class is abstract and inherits from UserControl. It contains two abstract properties called LoadSettings(string pSettings) and RetrieveSettings(byref S pSettings) where...
    Posted to Web Forms (Forum) by digitall on 07-05-2008, 12:00 AM
    Filed under: user control, Generics
Page 1 of 4 (39 items) 1 2 3 4 Next >