DCSIMG
C# - Gil Fink's Blog

Gil Fink's Blog

Fink about IT

News

Microsoft MVP

My Facebook Profile My Twitter Profile My Linkedin Profile

Locations of visitors to this page

Creative Commons License

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2013 Gil Fink

Hebrew Articles

Index Pages

My OSS Projects

English Articles

Browse by Tags

All Tags » C# (RSS)
Quick Tip – Convert VB.NET to C# or C# to VB.NET
Quick Tip – Convert VB.NET to C# or C# to VB.NET There is a need sometimes to convert VB.NET files to C# or vice versa. There are two tools that I use in this process: Code Converter by Telerik – enables the convert of a given piece of code or multiple files. .net code converter – enables the convert of a given piece of code. There are also add-ins to Visual Studio that enables the convert between VB.NET to C# like C-Sharpener For VB but since I don’t have full projects to convert I prefer the above...
Back to Basics – Zip in .NET
Back to Basics – Zip in .NET In today’s post I’m going to share a problem I solved this week. The solution was to use the framework’s System.IO.Compression namespace and the GZipStream object. The Problem In my current project we save Xml data in our database. The field to save the data was of type varchar(6000). This way of saving the data raised a problem of big Xml data (over 8000 kb for every Xml data) which were saved in the database and for the long run could raise space and performance problems...
Consuming Data Services Service Operations
Consuming Data Services Service Operations In the following post I’m going to explain how to consume ADO.NET data services service operations from your clients. The Problem In my previous post I introduced the concept of service operations in ADO.NET data services . After adding a service reference in my client application a problem raised it head. The service operations aren’t exposed in the generated proxy. Probably this feature will be added in the future by the ADO.NET team (I hope). Meanwhile...
Service Operations – Adding Business Logic to a Data Service
Service Operations – Adding Business Logic to a Data Service In the following post I’m going to explain what are service operations and how to use them to add business logic to an  ADO.NET data services . What are Service Operations? ADO.NET Data Services enable definition of service operations to extend the model of mapping URIs to resources. This feature can be describe as a custom entry point to the data service . Service operations are compassable and they follow the URI schema of the data...
Back to Basics – How to Retrieve a Value Returned by a SP
Back to Basics – How to Retrieve a Value Returned by a SP In the following posts I’m going to describe basic tools which every developer needs to know. In today’s post I’m going to explain how to retrieve a value returned by a stored procedure . The Story Behind the Post During this week one of my colleagues asked me if it’s possible get a returned value of a stored procedure with the infrastructure I wrote to my current project. The question regarded a returning value and not output parameters which...
Building a Simple Iframe Custom Control
Building a Simple Iframe Custom Control In today’s post I’m going to explain how to build a simple custom control – in my case it’s going to be an Iframe custom control . What is an Iframe? Iframes are a web page elements that create an inline frame which contains another document or web page. Iframes load another html document within their <iframe> tags . I don’t recommend the use of Iframes because they are bad for search engine optimizations but sometimes it is proper to use them. Building...
Back to Basics – The Default Keyword in Generic Code
Back to Basics – The Default Keyword in Generic Code In the following posts I’m going to describe basic tools which every developer needs to know. In today’s post I’m going to explain what is the default keyword in generic code and how to use it. What is the Default Keyword? The default keyword has dual meaning since .Net framework 2.0 was published. The first meaning is inside the switch construct to inform the switch that if non of the cases is valid then the switch will go to the default block...
Invoking Generic Methods With Reflection
Invoking Generic Methods With Reflection A few days ago I answered a question in the ASP.NET forums concerning the issue of invoking generic methods with reflection . In this post I’m going to explain that issue. If generics or reflection are new to you you can read about them in the next MSDN links: Overview of Generics in the .NET Framework Reflection Overview Getting started You will need to create a new console application in order to make the example work. In the following examples I’m going...
Back to Basics – Nullable Value Type
Back to Basics – Nullable Value Type In the following posts I’m going to describe basic tools which every developer needs to know. In today’s post I’m going to explain what is a Nullable value type and how to use it in your code. What are Nullable Value Types? Nullable value types are an instances of the Nullable<T> struct. The nullable value type can hold the all the values that its underlining value type holds and a null value. The main reason for this type came from the use of databases...
Back to Basics – Cloning
Back to Basics – Cloning In the following posts I’m going to describe basic tools which every developer needs to know. In today’s post I’m going to explain what is cloning and how to implement cloning in your application. What is Cloning? Cloning is the ability to make an exact copy of an instance of a type. There are two known forms of cloning : Shallow copy – all the fields of the original object are being copied to the copied object and the two objects reference the same objects in the end of...
Improving Performance By Using ASP.NET Caching - Output Cache
Improving Performance By Using ASP.NET Caching - Output Cache What is ASP.NET caching mechanism? When to use caching ? and how can I use it in order to improve my site performance ? are the questions this post series is going to answer. In today’s post I’ll introduce the output cache . You can read the previous posts in the subject: Improving performance by using ASP.NET caching Improving performance by using ASP.NET caching – application caching What is Output Cache ? Output cache is a mechanism...
Building a .Net Client for ADO.NET Data Service
Building a .Net Client for ADO.NET Data Service In the previous post about ADO.NET data services I introduced the data services topic and showed a simple example of how to build a data service . In today’s post I’m going to explain how to consume the built data service by a .NET client . Revisiting The Previous Post Example In the previous post I gave an example of course class and course data context. In the previous example I used the preview version of ADO.NET data service and since then the VS2008...
Improving Performance By Using ASP.NET Caching - Application Caching
In the post I describe the application cache mechanism and how to use it....
Interpreter Pattern
This is the last post in the series of design patterns. The post describe the interpreter design pattern and shows an example in C#....
Observer Pattern
The post describe one of the most commonly used design pattern - the observer pattern. ...
More Posts « Previous page - Next page »