We Moved - This Forum is now Read-Only

Our new community is now available at https://support.submain.com/community/. We will leave historical discussions here in this forum view-only mode for search purposes, but moving forward, please post your questions in the appropriate category in the new community.

 
  SubMain - CodeIt.Right The First Time!

/Community

Support Community for SubMain Products
 Home Products Services Download Purchase Support
Search
 
Home Forums Blogs Tutorials/CIR Tutorials/GD Downloads
Welcome to SubMain Community Sign in | Join | Help

bug with Remove unused internal classes Rule.

  •  06-07-2009, 5:11 AM

    bug with Remove unused internal classes Rule.

    I get a Remove unused internal classes warning on this code:

            static void Main( string[] args )
            {
                IComparable x=GetInfo(typeof(int));
            }

            static private IComparable GetInfo( Type t )
            {
                Type c=typeof(Info<>).MakeGenericType(t);
                return Activator.CreateInstance(c) as IComparable;
            }

            private class Info<T> : IComparable
            {
                public int CompareTo( object obj )
                {
                    throw new Exception("The method or operation is not implemented.");
                }
            }

    The CodeIt.Right version is 1.6.09156

     Thanks,

    Nadav

     

    Filed under: ,
View Complete Thread
 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |