Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > C# Error in a .cs

Reply
Thread Tools

C# Error in a .cs

 
 
Auku Auku is offline
Junior Member
Join Date: Aug 2010
Posts: 2
 
      08-24-2010
I am getting a few errors that seem to confused me.

Can anyone help me out a bit? I new to C#.

Code:
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

internal class _PrivateImplementationDetails
    {

    internal static int $$method0x6000095-1;
    internal static StaticArrayInitTypeSize=32 $$method0x60000ff-1;
    internal static StaticArrayInitTypeSize2=256 $$method0x60000ff-2;
    internal static StaticArrayInitTypeSize3=16 $$method0x60000ff-3;
    internal static int $$method0x60000ff-4
    internal static int $$method0x60000ff-5;


    [StructLayout(LayoutKind.Explicit, Size=0x10, Pack=1)]
    private struct StaticArrayInitTypeSize=16
        {
            }

    [StructLayout(LayoutKind.Explicit, Size=0x100, Pack=1)]
    private struct StaticArrayInitTypeSize2=256
        {
            }

    [StructLayout(LayoutKind.Explicit, Size=0x20, Pack=1)]
    private struct StaticArrayInitTypeSize3=32
    {
                                 }
                         }
               }
     }
}
Unexpected character '$'

How can I remove this? What is the problem with the "$"? How can I fix this?

"Invalid token '=/-/$' in class, struct, or interface member declaration"

Not sure why I get this error, but I don't know how to fix it. Google didn't help.

{ expected

I added a "{" where this error shows, but then I get the "Invalid token" error as before.

Can anyone help me? Thanks.
 
Reply With Quote
 
 
 
 
Auku Auku is offline
Junior Member
Join Date: Aug 2010
Posts: 2
 
      08-24-2010
I did some editing, and got the errors fixed.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xffc Thread 0x228 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-30-2006 03:16 PM
Error connecting to SQLExpress 2005 locally (error: 26 - Error Locating Server/Instance Specified) hfk0 ASP .Net 2 03-27-2006 08:43 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 1 03-24-2006 04:20 PM
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr bazzer ASP .Net 0 03-24-2006 02:22 PM
Error 500: ERROR: Cannot forward. Writer or Stream already obtained. Error JavaQueries Java 1 03-01-2005 06:30 PM



Advertisments