.Net :- String.Join returns “System.String[]”

Background Hit a curb yesterday and wanted to share about it today. I have a collection and attempted to display its contents.   Code Original Output Image   Revision Output Image Sharing Restester.com Links Visual Basic Online Compiler Link Vb.Net - Displaying Collection Contents Link Git Gist CollectionDisplayContents Link Dedicate Dedicating to:- string.Join(string, string[]) returns … Continue reading .Net :- String.Join returns “System.String[]”

VB.Net – Compilation Warning – “Variable is used before it has been assigned a value. A Null Reference could result at runtime”

Variables Looking at an aged code and I started rearranging it a bit. Unfortunately, re-arranged, it stopped working. I took a night's sleep. Come the next day, less tired and wearied, I went back at it. Thankfully, I had made a backup and had it tucked away. Looking at the saved code, I found out … Continue reading VB.Net – Compilation Warning – “Variable is used before it has been assigned a value. A Null Reference could result at runtime”

C# – Error – “type used in a using statement must be implicitly convertible to ‘System.IDisposable’.”

Background A very quick post on a very easy to address C# error.   Error Image Text 'Person':type used in a using statement must be implicitly convertible to 'System.IDisposable'.   Scenario #1 A  very simple scenario. We have a class called Person. The class has a simple property called name. We initialize the class and … Continue reading C# – Error – “type used in a using statement must be implicitly convertible to ‘System.IDisposable’.”

.Net – Compilation Error Message – “error CS0246: The type or namespace name ‘[interface]’ could not be found (are you missing a using directive or an assembly reference?)”

Background Continuing to play around with .Net C#. Specifically, Generics. Ran into an error I could not get beyond. Error Error Message Code Error Message   TroubleShooting Add Namespace Code Preface usage by indicating the code uses classes in the System.Collections.Generic namespace.   Error Compiled and got an error that reads:- Remediation Add Third-Party Namespaces … Continue reading .Net – Compilation Error Message – “error CS0246: The type or namespace name ‘[interface]’ could not be found (are you missing a using directive or an assembly reference?)”

Visual Studio – Compilation – Error – “The type or namespace name ‘ManagementScope’ could not be found (are you missing a using directive or an assembly reference?)”

Background Using Visual Studio to compile an application. Ran into a little error. Error Messages Error Messages - Text Error CS0246 The type or namespace name 'ManagementScope' could not be found (are you missing a using directive or an assembly reference?) The type or namespace name 'ObjectQuery' could not be found (are you missing a … Continue reading Visual Studio – Compilation – Error – “The type or namespace name ‘ManagementScope’ could not be found (are you missing a using directive or an assembly reference?)”

.Net Core – Compilation Error – CS0101 – “The namespace already contains a definition” // “Type already defines a member with the same parameter types”

Background Attempting to build a .Net core application, but ran into a blocking error. Request So to compile a .Net Core application, from the command line, I will simply navigate to the solution folder and issue a "dotnet build" command.   Error Error Messages Textual error CS0101: The namespace [project] already contains a definition error … Continue reading .Net Core – Compilation Error – CS0101 – “The namespace already contains a definition” // “Type already defines a member with the same parameter types”

MSBuild – Error – ‘error MSB4066: The attribute “Version” in element is unrecognized.’

Background Wanted to highlight an error one might experience trying to build a Visual Studio Application from the command line. Error Error - Image Error - Text error MSB4066: The attribute "Version" in element is unrecognized. Troubleshooting Google Googled on the error message and thanks goodness Stack Overflow came to rescue. The solution is to … Continue reading MSBuild – Error – ‘error MSB4066: The attribute “Version” in element is unrecognized.’

Visual Studio.Net – Build Error – “Error CS0229 Ambiguity between …”

Background Experiencing error building a project in Visual Studio. Error Error Image   Error Message Error CS0229 Ambiguity between '_jobSummary' and '_jobSummary' Error CS0121 The call is ambiguous between the following methods or properties: 'ExecJobActionAsync(Func<DbConnection, Task<int>>)' and 'ExecJobActionAsync(Func<DbConnection, Task<int>>)' Error CS0229 Ambiguity between 'IsEnabled' and 'IsEnabled' Error CS0229 Ambiguity between 'IsRunning' and 'IsRunning'   Troubleshooting … Continue reading Visual Studio.Net – Build Error – “Error CS0229 Ambiguity between …”