<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>C#</title><link>http://forums.asp.net/37.aspx</link><description>Discussions/Questions about the C# language. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=13&amp;c=23" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: I have a quesions</title><link>http://forums.asp.net/thread/3275219.aspx</link><pubDate>Sun, 05 Jul 2009 08:51:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275219</guid><dc:creator>anders__f</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275219.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3275219</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m sure that there is a number of forums where this question could be asked, some of them maybe better suited than this forum. But my point is that in this thread on this forum I&amp;#39;ve already started to help, and there is definitely a number of other users on this forum that would be able to answer this question too.&lt;/p&gt;&lt;p&gt;The thing is, to be able to help the OP, we need some more description about the problem and what he wants to achieve. Sorry, but I can&amp;#39;t see the point in trying another forum in this situation.&lt;/p&gt;&lt;p&gt;Anyway, here is a simple sample code showing how you could use an interface for the types that is to be added to the list. To use the methods or properties defined in the interface there is no need to cast the list.&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;using System;
using System.Collections.Generic;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Rectangles();
            Circles();
            BothRectanglesAndCircles();
        }

        private static void Rectangles()
        {
            var list = new List&amp;lt;IGeometrical&amp;gt;
                           {
                               new Rectangle(0, 0, 50, 50),
                               new Rectangle(10, 10, 40, 40)
                           };
            DisplayArea(list);
        }

        private static void Circles()
        {
            var list = new List&amp;lt;IGeometrical&amp;gt;
                           {
                               new Circle(0, 0, 15),
                               new Circle(15, 15, 15)
                           };
            DisplayArea(list);
        }

        private static void BothRectanglesAndCircles()
        {
            var list = new List&amp;lt;IGeometrical&amp;gt;
                           {
                               new Rectangle(20, 20, 30, 10),
                               new Circle(15, 15, 45)
                           };
            DisplayArea(list);
        }

        private static void DisplayArea(List&amp;lt;IGeometrical&amp;gt; list)
        {
            foreach (var geometrical in list)
            {
                Console.WriteLine(&amp;quot;{0}: {1}&amp;quot;,
                    geometrical.Name,
                    geometrical.GetArea());
            }
        }
    }

    public interface IGeometrical
    {
        string Name { get; }
        double GetArea();
    }

    public class Rectangle : IGeometrical
    {
        public int X { get; set; }
        public int Y { get; set; }
        public int Width { get; set; }
        public int Height { get; set; }

        public Rectangle(int x, int y, int width, int height)
        {
            X = x;
            Y = y;
            Width = width;
            Height = height;
        }

        public string Name
        {
            get { return &amp;quot;Rectangle&amp;quot;; }
        }

        public double GetArea()
        {
            return Width * Height;
        }
    }

    public class Circle : IGeometrical
    {
        public int X { get; set; }
        public int Y { get; set; }
        public int Radius { get; set; }

        public Circle(int x, int y, int radius)
        {
            X = x;
            Y = y;
            Radius = radius;
        }

        public string Name
        {
            get { return &amp;quot;Circle&amp;quot;; }
        }

        public double GetArea()
        {
            return Math.PI * Radius * Radius;
        }
    }
}
&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: I have a quesions</title><link>http://forums.asp.net/thread/3274766.aspx</link><pubDate>Sat, 04 Jul 2009 15:16:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274766</guid><dc:creator>TATWORTH</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274766.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3274766</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;anders__f:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;TATWORTH, you don&amp;#39;t link to a specific forum thread, and I don&amp;#39;t know why that forum should be better than this&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Whilst this is a very good forum for ASP.NET questions, there are certain questions which while they can be legitimatly asked on this forum, they could also be asked elsewhere. The MSDN Dot Net forum seemed the best other forum for the question to be asked.&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;anders__f:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Maybe the best thing would be to use an interface for the types that could possibly be in the list.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Good point! May I respectfully suggest that you either find an example elsewhere on the web or post a sample yourself.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: I have a quesions</title><link>http://forums.asp.net/thread/3274717.aspx</link><pubDate>Sat, 04 Jul 2009 14:02:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274717</guid><dc:creator>anders__f</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274717.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3274717</wfw:commentRss><description>&lt;p&gt;TATWORTH, you don&amp;#39;t link to a specific forum thread, and I don&amp;#39;t know why that forum should be better than this. What we need to know to help is more about what the OP wants to achieve.&lt;/p&gt;&lt;p&gt;Maybe the best thing would be to use an interface for the types that could possibly be in the list.&lt;/p&gt;</description></item><item><title>Re: I have a quesions</title><link>http://forums.asp.net/thread/3274509.aspx</link><pubDate>Sat, 04 Jul 2009 09:23:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274509</guid><dc:creator>TATWORTH</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274509.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3274509</wfw:commentRss><description>&lt;p&gt;You could also try the Dot Net forum at:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;b&gt; &lt;a href="http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=12&amp;amp;SiteID=1" target="_blank"&gt;&lt;font color="#034efa"&gt;http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=12&amp;amp;SiteID=1 &lt;/font&gt;&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;</description></item><item><title>Re: I have a quesions</title><link>http://forums.asp.net/thread/3273219.aspx</link><pubDate>Fri, 03 Jul 2009 09:52:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273219</guid><dc:creator>anders__f</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273219.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3273219</wfw:commentRss><description>&lt;p&gt;Well, I don&amp;#39;t think that&amp;#39;s possible. Probably the best thing to do is to change the way you think. Maybe you are trying to solve the wrong problem.&lt;/p&gt;&lt;p&gt;Why do you use a List&amp;lt;object&amp;gt;, and what do you want to do with the converted list?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: I have a quesions</title><link>http://forums.asp.net/thread/3272163.aspx</link><pubDate>Thu, 02 Jul 2009 19:51:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3272163</guid><dc:creator>abdelnaby</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3272163.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3272163</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Rectangle is just an example &lt;/p&gt;
&lt;p&gt;Actually i dont have a defind type like rectangle &lt;/p&gt;
&lt;p&gt;I have the destination type stored in a type variable &lt;/p&gt;
&lt;p&gt;Consider this code &lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;void ProcessTTypeList( List&amp;lt;Object&amp;gt; T , Type mType ) &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;&lt;/span&gt;&amp;nbsp;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;lo.add(new&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;Rectangle&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; ( 0 , 0 , 50 , 50 )); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;lo.add(new&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;Rectangle&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; ( 0 , 0 , 50 , 50 )); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;ListConverter&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; &amp;lt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;object&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; , mType&amp;gt;.Convert ( lo ); /* this is what i rally need */&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;}&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: I have a quesions</title><link>http://forums.asp.net/thread/3272072.aspx</link><pubDate>Thu, 02 Jul 2009 18:49:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3272072</guid><dc:creator>anders__f</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3272072.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3272072</wfw:commentRss><description>&lt;p&gt;If the objects you add to your &amp;quot;lo&amp;quot; really is of type Rectangle, the easiest way is to just cast them. With Linq you can do this very easy:&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;private static void Test()
{
    List&amp;lt;object&amp;gt; lo = new List&amp;lt;object&amp;gt;();
    lo.Add(new Rectangle(1, 0, 50, 50));
    lo.Add(new Rectangle(2, 0, 50, 50));
    List&amp;lt;Rectangle&amp;gt; converted = lo.Cast&amp;lt;Rectangle&amp;gt;().ToList();
}&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: I have a quesions</title><link>http://forums.asp.net/thread/3271951.aspx</link><pubDate>Thu, 02 Jul 2009 17:43:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3271951</guid><dc:creator>abdelnaby</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3271951.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3271951</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Dear &lt;/p&gt;
&lt;p&gt;Thanks for your reply &lt;/p&gt;
&lt;p&gt;unfortunatily there is 2 problems &lt;/p&gt;
&lt;p&gt;1- your clas does not accept object as first type &lt;/p&gt;
&lt;p&gt;2- your class does not accpt type variable as second type &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;here is example of the code i want to run &lt;/p&gt;
&lt;p&gt;
&lt;p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;object&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;&amp;gt; lo = &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;List&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;object&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;&amp;gt;(); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;lo.add(new&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;Rectangle&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; ( 0 , 0 , 50 , 50 )); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;lo.add(new&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;Rectangle&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; ( 0 , 0 , 50 , 50 )); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;Type&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; T = &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;typeof&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; ( &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;Rectangle&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt;) ; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#2b91af;FONT-SIZE:x-small;"&gt;ListConverter&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; &amp;lt; &lt;/span&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;&lt;span style="FONT-FAMILY:;COLOR:#0000ff;FONT-SIZE:x-small;"&gt;object&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:;FONT-SIZE:x-small;"&gt; , T&amp;gt;.Convert ( lo );&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: I have a quesions</title><link>http://forums.asp.net/thread/3271640.aspx</link><pubDate>Thu, 02 Jul 2009 14:56:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3271640</guid><dc:creator>Heloril</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3271640.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3271640</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;To cast two lists use this static class:&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;public class ListConverter&amp;lt;TFrom, TTo&amp;gt;
    where TFrom : TTo
    {
        public static IEnumerable&amp;lt;TTo&amp;gt; Convert(IEnumerable&amp;lt;TFrom&amp;gt; from)
        { return Convert(new List&amp;lt;TFrom&amp;gt;(from)); }
        public static List&amp;lt;TTo&amp;gt; Convert(List&amp;lt;TFrom&amp;gt; from)
        { return from.ConvertAll&amp;lt;TTo&amp;gt;(new Converter&amp;lt;TFrom, TTo&amp;gt;(Convert)); }

        public static TTo Convert(TFrom from) { return (TTo)from; }
    }&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And to use it: &lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;private List&amp;lt;AttachedItem&amp;gt; GetAttachedFiles(int issueEventID)
        {
            return ListConverter&amp;lt;AttachedFile, AttachedItem&amp;gt;.Convert(attachedFileDAL.GetEventAttachedFiles(issueEventID));
        }

        private List&amp;lt;AttachedItem&amp;gt; GetDispatches(int issueEventID)
        {
            return ListConverter&amp;lt;Dispatch, AttachedItem&amp;gt;.Convert(dispatchDAL.GetDispatches(issueEventID));
        }&lt;/pre&gt;
&lt;p&gt;Here AttachedFile and Dispatch inherits from AttachedItem. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>I have a quesions</title><link>http://forums.asp.net/thread/3271390.aspx</link><pubDate>Thu, 02 Jul 2009 13:11:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3271390</guid><dc:creator>abdelnaby</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3271390.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=37&amp;PostID=3271390</wfw:commentRss><description>&lt;p&gt;Dear All &lt;/p&gt;
&lt;p&gt;this is my first post in this forum &lt;/p&gt;
&lt;p&gt;i have an issue i am trying to solve it since about 3 monthes &lt;/p&gt;
&lt;p&gt;I got a type in a Type variable &lt;/p&gt;
&lt;p&gt;Type T ; &lt;/p&gt;
&lt;p&gt;I have a List of objects &lt;/p&gt;
&lt;p&gt;List&amp;lt;Object&amp;gt; mList ; &lt;/p&gt;
&lt;p&gt;i want to case mList as a List&amp;lt;T&amp;gt; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;is there any solution ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;THanks in advance&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>