Tag Archives: .net
Converting Excel into XML – .NET
we have a scenario, where we need to pull the report from SSRS server using ReportExecution Service (check Get SSRS report programatically using C#/.NET). However the stream returned in some… Read more
Get SSRS report programatically using C#/.NET
To get the SSRs report programmatically, ReportExecutionService reference is all we need. Browse http://Server/ReportIISDirectory/ReportExecution2005.asmx, this is the path of the report execution service, that provide us functionality to pull the… Read more
Encryption and decryption in .NET
For Encryption and decryption we need to use System.Security.Cryptography namespace. To Encrypt public string Encrypt(string clearText, string Password) { // First we need to turn the input string into a… Read more
Implementing IDisposable interface – .NET
In .NET world we dont have to worry about the object disposal. However if we are working with unmanaged code than we need to make sure that all objects gets… Read more
Implementing iterators with yield statements – .NET
using System; using System.Collections.Generic; using System.Collections; using System.Text; using System.Threading; namespace CSharpBasics { class IEnumerableCls { public void iterateIenumerable() { Console.WriteLine(“Ienum1—”); foreach (string s in new Ienum1()) Console.WriteLine(” ” +… Read more
Indexes in C#
using System; using System.Collections.Generic; using System.Text; namespace CSharpBasics { //WE CANNOT HAVE STATIC INDEXERS IN C# class Indexes { List L = new List(); public int this[int i] { get… Read more
Delegates and Events in C#
using System; buy cialis online using System.Collections.Generic; using System.Text; namespace CSharpBasics { //An interesting and useful property of a delegate is that //it does not know or care about the… Read more
Polymorphism in C#
with the help of this small code, I’ll try to explain you the polymorphism. using System; using System.Collections.Generic; using System.Text; namespace CSharpBasics { class Polymorphism_bas { public string s_method() {… Read more
Interfaces in C#
A very basic article on interfaces. how to whiten teeth at home Demostrates how to drive class with multiple interfaces (multiple interface inheritance) with same method and properties and use… Read more