"cannot explicitly call operator or accessor"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Martynas

    #1

    "cannot explicitly call operator or accessor"

    Hello, i was codding a program with c# and i get an error called "cannot explicitly call operator or accessor"
    here is the code:
    Error 1 'System.Collect ions.Generic.Li st<LFS_External _Client.clsConn ection>.Count.g et': cannot explicitly call operator or accessor C:\Documents and Settings\Martyn as\My Documents\Visua l Studio 2008\Projects\c ruise\cruise\Me ssageHandler.cs 847 26 cruise

    Code:
                    if (cops.get_Count() > 0)
                    {
                        long share = (availableMoney / 5L) / ((long) cops.get_Count());
  • Christian Binder
    Recognized Expert New Member
    • Jan 2008
    • 218

    #2
    You have to use cops.Count instead of cops.get_Count.

    Comment

    Working...