Skip to content

Instantly share code, notes, and snippets.

View gopigujjula's full-sized avatar

Gopikrishna Reddy Gujjula gopigujjula

View GitHub Profile
@gopigujjula
gopigujjula / ExcelToDataTable
Created April 19, 2013 10:42
Loading Excel sheet to DataTable using Ole DB jet engine in C#
using System;
using System.Data;
using System.Data.OleDb;
namespace ExcelToDataTable
{
class LoadExcel
{
static void Main(string[] args)
{
@gopigujjula
gopigujjula / XMLGeneration
Created April 18, 2013 13:34
XML generation using XMLDocument
using System.Xml;
using System;
namespace SampleXmlTest
{
public class XmlClass
{
static void Main(string[] args)
{
try
@gopigujjula
gopigujjula / DataRowState
Created April 18, 2013 13:18
DataRowState
using System;
using System.Data;
namespace DataTableRowState
{
public class BooksList
{
public static void Main(string[] args)
{
//This is the Datatable which contains book records.
@gopigujjula
gopigujjula / SwapIntegers
Created April 18, 2013 13:07
Swapping two integer values in different ways.
using System;
namespace Swapping
{
class Swap
{
static void Main()
{
Console.WriteLine("Swapping Two Integers using different methods.\n");
Console.WriteLine("Using Temporary variable.");
@gopigujjula
gopigujjula / FTPFileCopy
Created April 18, 2013 13:03
File copying using FTP
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;
namespace FtpFileCopy
{
public class FtpFileUpload
{
@gopigujjula
gopigujjula / PrintNumbersWithoutLoop
Last active December 16, 2015 09:19
Print N numbers without using any loops.
using System;
namespace PrintValues
{
class PrintTest
{
static void Main(string[] args)
{
Console.WriteLine("Please enter from and to numbers\n");
@gopigujjula
gopigujjula / BigNumberAddition
Created April 18, 2013 12:15
Program to add two 50- digit numbers in C#
using System;
namespace BigNumberAddition
{
class Addition
{
static void Main(string[] args)
{
int[] firstNumber = new int[50] {
1, 2, 3, 4, 5, 6, 7, 8, 9,
@gopigujjula
gopigujjula / SplitToBatches
Created March 15, 2013 13:32
This sample application, will create a number of objects , and add those to the list. But based on the specified batch size, it will split the list into number of batches.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SplitClass
{
public class Program
{
static void Main(string[] args)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HorseRaceProblem
{
public class HorseRace
{
static void Main(string[] args)
using System;
using System.Net;
using System.IO;
namespace FtpFileCopy
{
public class FtpFileUpload
{
static void Main(string[] args)
{