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:
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