Tags » Csharp

Dispose in .NET

Recently we were working on merging PDFs on our web site where we ran into a strange problem. The user could run the merged reports once but upon the second time the server would get a “File Locked” error. 200 more words

Code

Connection Visual Studio to MySql

It is C# connection of Visual Studio to MySql database

public MySqlConnection connection = null;
public void activate_SQLConnection()
{

Click the Link Full Codes: Connection VB to MySql

Connection

Return maximum occurring character in the input string

        public static char GetMax()
        {
            string value = "GeeksForGeeks";
            char[] str = new char;

            // to convert into char array
            for (int i = 0; i < value.Length; i++)
            {
                str[i] = value[i];
            }

            int[] count = new int;
            for (int i = 0; i < value.Length; i++)
            {
                count]++;
            }

            int max = 0;
            char result = ' ';

            for (int i = 0; i < value.Length; i++)
            {
                if (max < count])
                {
                    max = count];
                    result = str[i];
                }
            }

            return result;            
        } 8 more words
#algorithms

Static and Instance Methods

Since I use Ruby at work now, and since I understand C# syntax much better than I understand Ruby syntax, I occasionally run into things that look like they should or shouldn’t work in Ruby, but surprise me by working (or not working). 257 more words

Csharp

I have been published in MSDN Magazine :)

Party!! :)

My article for MSDN Magazine was just published. It’s about a design pattern called “Active Events”, that I invented in 2009, which is at the core of… 111 more words

Architecture

COM & Interop Hell: To Excel or to EPPLUS?

Scrolling through a lot of questions on StackOverflow, CodeProject and other sites I often come across questions like how do I create an ExcelSheet… 274 more words

.Net

Workshop with Updates for C# 7.0 and Visual Studio 2017

Visual Studio will be released on March 7th, 2017 – and my update workshop will be ready. You learn about the new features of C# 7.0, new features of Visual Studio 2017, and how the .NET Core tools and project files changed! 496 more words

.NET Core