0

help me with this code i get "} expected" error when i try to build it with visual basic 2015

using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Resources; using System.Runtime.CompilerServices; namespace Chknet_Monitor.Properties { [GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [DebuggerNonUserCode] [CompilerGenerated] internal class Resources { private static ResourceManager resourceMan; private static CultureInfo resourceCulture; internal Resources() { } [EditorBrowsable(EditorBrowsableState.Advanced)] internal static ResourceManager ResourceManager { get { if (Chknet_Monitor.Properties.Resources.resourceMan == null) Chknet_Monitor.Properties.Resources.resourceMan = new ResourceManager("Chknet_Monitor.Properties.Resources", typeof (Chknet_Monitor.Properties.Resources).Assembly); return Chknet_Monitor.Properties.Resources.resourceMan; } } [EditorBrowsable(EditorBrowsableState.Advanced)] internal static CultureInfo Culture { get => Chknet_Monitor.Properties.Resources.resourceCulture; set => Chknet_Monitor.Properties.Resources.resourceCulture = value; } } }

2nd Jan 2021, 10:56 PM
MEMES XD
MEMES XD - avatar
4 Respuestas
+ 6
This is a bit over my head, but this is C#. What are you doing to "build it" with VB? You might do better to ask this in Stack Overflow since VB isn't a SoloLearn course.
3rd Jan 2021, 4:34 AM
David Ashton
David Ashton - avatar
+ 6
The reason for the error is this isn't VB.NET. It looks like you have C# code in a vb file in a VB.NET project. VB.NET doesn't use curly brackets or using namespace statements or most of the constructs in this code for methods, type declarations, return types, etc.
3rd Jan 2021, 7:25 AM
David Carroll
David Carroll - avatar
+ 4
Haritap Kumar Please remove your reply because it is considered spam. Your Java code is not an answer to the question, which was about Visual Basic. You can post Java codes here. https://www.sololearn.com/Discuss/347139 Happy coding!
3rd Jan 2021, 10:59 AM
David Ashton
David Ashton - avatar
+ 2
Are you sure this is Visual Basic code? Please put relevant language name (Visual Basic) in the tags, where it currently says 'help' above ☝
3rd Jan 2021, 1:58 AM
Ipang