Results 1 to 2 of 2

Thread: Code in 1.1 That doesn't work in 2.0

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2003
    Location
    Eden Prairie Minnesota
    Posts
    301

    Code in 1.1 That doesn't work in 2.0

    Here is the code that gives me trouble:

    Code:
            m_alFriends = ArrayList.Synchronized(new ArrayList(25));
    I Declared m_alFriends like so:

    Code:
            private List<Friends.Friend> m_alFriends;
    I changed that from:

    Code:
            private ArrayList m_alFriends;
    I get the following error:

    Code:
    Error	7	Cannot implicitly convert type 'System.Collections.ArrayList' to 'System.Collections.Generic.List<Defiance.Bncs.Friends.Friend>'	C:\Documents and Settings\JoeL Zimmerman\My Documents\My Programming\C#\8.0\Defiance\Defiance.Connection\BNCS\OpenGameProtocol.cs	764	31	Defiance.Connections
    Last edited by BaDDBLooD; Apr 8th, 2006 at 04:37 PM.
    There are only two kinds of people who are truely fascinating: people who know absolutely everything, and people who know absolutely nothing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width