Results 1 to 6 of 6

Thread: [RESOLVED][2.0] Problem passing List<T>

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    Resolved [RESOLVED][2.0] Problem passing List<T>

    HI all I have a Method that I wish to pass a generic List as a parameter,

    Code:
        public void Test (List<Client> temp)
            {
                this.ClaimBindingSource.DataSource = temp;
            }
    The idea is then to bind it for a data report.

    But upon trying to compile i get the following error

    Error 1 Inconsistent accessibility: parameter type 'System.Collections.Generic.List<Indemnity_System.Client>' is less accessible than method 'Indemnity_System.ReportView.Test(System.Collections.Generic.List<Indemnity_System.Client>)'
    If I use an ArrayList I do not get this problem any help would be great.

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