Home > expected class > compiler error message cs1518

Compiler Error Message Cs1518

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings

C# Cs1518

and policies of this site About Us Learn more about Stack Overflow error cs1518 expected class delegate enum interface or struct the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation

Expected Class Delegate Enum Interface Or Struct C#

Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up CS1518: Expected class, delegate, enum, interface, or struct up vote -1 down vote favorite I am trying to write a new XSLT package. The code that I am using is public virtual string CustomShowInventoryTable(String sProductID, String sVariantID) { StringBuilder results = new StringBuilder(""); if (AppLogic.AppConfigBool("ShowInventoryTable")) { results.Append(AppLogic.GetInventoryTable(ProductID, VariantID, true, ThisCustomer.SkinID, true, false)); } return results.ToString(); } The error I am getting is Compiler Error Message: CS1518: Expected class, delegate, enum, interface, or struct I have tried checking the ( and ) within the file but I still get this compiled error. c# xslt share|improve this question edited Feb 20 '14 at 15:00 helderdarocha 14.5k31535 asked Feb 20 '14 at 14:21 Jennifer Larsson 713 1 The compiler should tell you which line, and which column of that line, it's complaining about. Which line is that? (And in this case what's happening before that, since this message usually means your {} braces are not matched properly.) –keshlam Feb 20 '14 at 14:25 Its this linepublic virtual string CustomShowInventoryTable(String sProductID, String sVariantID) –Jennifer Larsson Feb 20 '14 at 14:27 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted I believe that you have a couple of typos in your code: It should be public virtual String, not string. Or maybe string sProductID, string sVariantID instead of String, depending on which language you're working with. AppLogic.GetInventoryTable(ProductID, Va

ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/MVC/Compiler Error Message: CS1518 in a view Compiler Error Message: CS1518 in a view [Answered]RSS 2 replies Last post Jul 25, 2009 05:46 PM by photo_tom ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options http://stackoverflow.com/questions/21910568/cs1518-expected-class-delegate-enum-interface-or-struct Advanced Search Related Links GuidanceSamplesVideos Reply photo_tom Member 1 Points 246 Posts Compiler Error Message: CS1518 in a view Jul 25, 2009 11:45 AM|photo_tom|LINK I'm getting the follwoing error message in my index view Server Error in '/' Application. Compilation Error Description: An error http://forums.asp.net/t/1451311.aspx?Compiler+Error+Message+CS1518+in+a+view occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1518: Expected class, delegate, enum, interface, or struct Source Error: Line 7: <%@ Import Namespace="MvcContrib.Pagination" %> Line 8: <%@ Import Namespace="MvcContrib.UI.Grid.ActionSyntax" %> Line 9: Line 10: <% Line 11: if (User.IsInRole("Administrator") || User.IsInRole("AdPressSales")) Using code segment - <%@ Page Title="CCC Company List Index" Language="C#" MasterPageFile="~/Views/Shared/Ccc.Master" Inherits="System.Web.Mvc.ViewPage>" %> <%@ Import Namespace="Project.Helpers" %> <%@ Import Namespace="MvcContrib.UI.Pager" %> <%@ Import Namespace="MvcContrib.UI.Grid" %> <%@ Import Namespace="MvcContrib.Pagination" %> <%@ Import Namespace="MvcContrib.UI.Grid.ActionSyntax" %> <% Html.Grid(Model) .Columns(column => This code was working and something broke and I really don't see where the problem is. thanks in advance Tom Reply

DOWNLOAD: C# Corner Android App Version 0.5.3 Released C# Corner Annual Conference 2017 Announced Forums - C# http://www.c-sharpcorner.com/forums/compilation-error-message Corner C# Corner Home Technologies Monthly Leaders ASK A QUESTION C# Programming Multi-threading IoT Coffee, Chai Lounge HTML, JavaScript, CSS .NET General Office Interoperability Microsoft Surface Community Services iPhone, iPad Active Directory Printing ReFS Current Affairs Java ADO.NET & Database Project Management Silverlight 5 Fun and Jokes JQuery AJAX & Atlas Remoting WCF Job Opportunities JSP Algorithms & AI Reporting Windows 8 Leadership Multimedia, expected class Graphics, Flash Arrays & Collections Robotics and Hardware Windows Azure Mac for Windows Node.js ASP.NET & Web Development Security & Cryptography Windows Store Apps Microsoft Feedback PHP C# Language Setup & Deployment Workflow Foundation Open Source Projects Social Networking C# References Sharepoint WPF Operating Systems TypeScript CLR & .NET Internals Speech & Voice Recognition XAML Language Paid Projects Web Hosting COM Interoperability Tablet PC expected class delegate Site and Forums Feedback Prizes, Awards, MVP Website Management Custom Controls Testing and QA Announcements Students & Beginner Projects Windows Phone 7 Design and Architecture Visual Basic .NET Author Guidelines Test Category Database Embedded Development Visual C++ Bugs and Problems Training & Certification Database General Enterprise Development Visual Studio 11 Forums Feedback Web Development Oracle Games, DirectX, and XNA Visual Studio 2010 Site Feedback & Suggestions Advertising, Marketing, SEO SQL GDI+ and DirectX Web Services Site Spams Android SQL Server General Windows Forms Miscellaneous AngularJS Products LINQ Windows Services .NET Books Cloud Computing Office 2013 Migrating to .NET Cutting-Edge Ask the Author Expression Tools Products Mobile Development .NET 5.0 Career Advice HTML 5 SharePoint 2013 Forum guidelines Home C# Language Compilation error message? Steve Higham 1.3k 10 1.2k Compilation error message? Aug 27 2014 4:34 PM Hello In my Register.aspx.cs  (a Web form for new users), I am getting the following error:Compiler Error Message: CS1518: Expected class, delegate, enum, interface, or struct The error refers to this line:  public static string GetConnString() In particular Visual Studio does not like 'string' in the above line which it has underlined in red. How can I correct t

 

Related content

c# error 2 expected class delegate enum interface or struct

C Error Expected Class Delegate Enum Interface Or Struct table id toc tbody tr td div id toctitle Contents div ul li a href Expected Class Delegate Enum Interface Or Struct Void a li li a href How To Solve Expected Class Delegate Enum Interface Or Struct a li li a href Error Type Or Namespace Definition Or End-of-file Expected a li ul td tr tbody table p here for relatedl a quick overview of the site Help error expected class delegate enum interface or struct Center Detailed answers to any questions you might have Meta expected class delegate enum

c# error cs1518 expected class delegate enum interface or struct

C Error Cs Expected Class Delegate Enum Interface Or Struct table id toc tbody tr td div id toctitle Contents div ul li a href How To Solve Expected Class Delegate Enum Interface Or Struct a li li a href Error Type Or Namespace Definition Or End Of File Expected a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you relatedl might have Meta Discuss the workings and policies of error expected class delegate enum interface or struct c this site About Us Learn more about

error 1 expected class delegate enum interface or struct

Error Expected Class Delegate Enum Interface Or Struct table id toc tbody tr td div id toctitle Contents div ul li a href Expected Class Delegate Enum Interface Or Struct In Mvc a li li a href Expected Class Delegate Enum Interface Or Struct cs a li li a href How To Solve Expected Class Delegate Enum Interface Or Struct a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn relatedl more

error 2 expected class delegate enum interface or struct

Error Expected Class Delegate Enum Interface Or Struct table id toc tbody tr td div id toctitle Contents div ul li a href List Expected Class Delegate Enum Interface Or Struct a li li a href Expected Class Delegate Enum Interface Or Struct cs a li li a href Type Or Namespace Definition Or End-of-file Expected a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site relatedl About Us Learn more about Stack Overflow the

error conversion to inaccessible base class is not allowed

Error Conversion To Inaccessible Base Class Is Not Allowed table id toc tbody tr td div id toctitle Contents div ul li a href Expected Class Name Before Token Inheritance a li li a href Can Protected Class Be Inherited a li li a href C Public Inheritance Private Members a li li a href C Public Vs Private Vs Protected a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any relatedl questions you might have Meta Discuss the workings and expected class member or base class name

error cs1518 expected class

Error Cs Expected Class p here for a quick overview of the site Help Center Detailed answers to any questions you relatedl might have Meta Discuss the workings and policies of expected class delegate enum interface or struct c this site About Us Learn more about Stack Overflow the company Business Learn cs error more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of million programmers just like you helping each other Join them it only takes a

error cs1518 expected class delegate enum interface or struct

Error Cs Expected Class Delegate Enum Interface Or Struct table id toc tbody tr td div id toctitle Contents div ul li a href Expected Class Delegate Enum Interface Or Struct Void a li li a href Expected Class Delegate Enum Interface Or Struct In Mvc a li li a href Error Type Or Namespace Definition Or End Of File Expected a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings relatedl and policies of this site About Us Learn

error expected either a definition for a tag name

Error Expected Either A Definition For A Tag Name table id toc tbody tr td div id toctitle Contents div ul li a href Expected Class Name C a li li a href Expected Class Name Before Token Qt a li li a href Base Class Has Incomplete Type a li li a href Undefined Reference To Vtable a li ul td tr tbody table p p p basic information about a student and their test relatedl grades I need to have the user determine invalid use of incomplete type c the number of structures to be defined I know

expected class delegate enum interface or struct error

Expected Class Delegate Enum Interface Or Struct Error table id toc tbody tr td div id toctitle Contents div ul li a href Expected Class Delegate Enum Interface Or Struct Void a li li a href How To Solve Expected Class Delegate Enum Interface Or Struct a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the relatedl workings and policies of this site About Us Learn more expected class delegate enum interface or struct in mvc about Stack Overflow the company

inline script error expected class delegate enum interface or struct

Inline Script Error Expected Class Delegate Enum Interface Or Struct table id toc tbody tr td div id toctitle Contents div ul li a href Expected Class Delegate Enum Interface Or Struct In Mvc a li li a href Cs Expected Class Delegate Enum Interface Or Struct a li li a href Identifier Expected C a li li a href C Enum a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed relatedl answers to any questions you might have Meta expected class delegate enum interface or struct void Discuss the