C# Corner

Resources  
  • Writing Secure Code using C#Apr 06, 2001. Code access security is a mechanism that grants/denies access to resources within a method call. For example, code written by a person may be allowed to write to the disk while code from another one may be forbidden from accessing the disk. This control can be enforced even if the code written by both of them is used within a single application
  • Understanding How Assert Effects SecurityApr 25, 2001. Assert is a security action that is evaluated at run time. Code Access Permission classes and Permission Sets support a method called Assert. Using the Assert method to control access to resources or actions will allow your code to perform actions that it normally has permission to perform and will allow other callers up stream in the call stack to have access that they would not normally have.
  • Wireless Model : How Does It Work?May 09, 2001. The browser sends an HTTP request to the Web server, which interprets the request and determines which resources to retrieve or execute. If the URL specifies a file, then the server sends it back.
  • Constructor and Destructors in C#Oct 10, 2001. This detailed article talks about how constructors and destructors work in C# and how to use them in your applications.
  • Understanding Properties in C#Oct 15, 2001. In C#, properties are nothing but natural extension of data fields. They are usually known as 'smart fields' in C# community.
  • Web services with Language InteroperabilityOct 18, 2001. A web service in general is a way of exposing the properties and methods through the Internet In other words, it's an URL-addressable resource that programmatically returns information to clients who want to use it.
  • Creating and Using ResourcesNov 16, 2001. In this article, I will give you a small example of how to add and use resources.
  • .NET Static Variables : Better than Application!Feb 22, 2002. In traditional ASP, we always had the Application object to store application-wide variables in.
  • .NET Remoting: The Simple ApproachMar 26, 2002. .NET Remoting provides a powerful and high performance way of working with remote objects. Architecturally, .NET Remote objects are a perfect fit for accessing resources across the network without the overhead posed by SOAP based Web services.
  • .NET Remoting: The Interface ApproachMar 26, 2002. .NET Remoting provides a powerful and high performance way of working with remote objects. Architecturally, .NET Remote objects are a perfect fit for accessing resources across the network without the overhead posed by SOAP based Web services. .NET Remoting is easier to use than Java's RMI, but definitely more difficult than creating a WebService. In this article, we will create a remote object, and access this object using the Interface.
  • Multithreading Part 3: Thread SynchronizationApr 11, 2002. The .NET framework provides a number of classes and data types that you can use to control the access to shared resources. Thread synchronization refers to the act of shielding against multithreading issues such as data- races, deadlocks and starvation.
  • Customized Windows Forms Look and FeelMay 28, 2002. I have encountered instances when I needed a high level look and feel of Windows Forms and controls.
  • Understanding Garbage Collection in the .NET FrameworkAug 09, 2002. In this article we will explore the Garbage Collection feature in the .Net framework and the activities required in applications to manage resources complementing the Garbage Collector.
  • Hex Colors in C#Sep 05, 2002. Currently I am developing a shareware application for generating image galleries for the web. There is a template engine built in that allows the user to specify colors as hexadecimal values, plus many other features.
  • Static Constructor in C# and their Usages.Sep 09, 2002. Static constructor is used to initialize static data members as soon as the class is referenced first time, whereas an instance constructor is used to create an instance of that class with <new> keyword.
  • The "Using" Statement in C#Dec 11, 2002. The .Net Framework provides resource management for managed objects through the garbage collector - You do not have to explicitly allocate and release memory for managed objects.
  • AddressParserFeb 06, 2003. The AddressParser class provides 2 static methods - ParseIpAddress and ParseMacAddress.
  • How to use C# ConstructorsApr 08, 2003. This article gives a brief introduction, features of constructors their usage and also an idea of how to use C# constructors.
  • Developing Secure Web Site with ASP.NET and IIS: PartIIMay 07, 2003. Authentication is a very important element of developing secure sites. It is the starting point of a secure environment for the protected resources. I have discussed several authentication mechanisms available in ASP.NET and how they join with IIS to provide a secure platform to develop sites in Part I of this article. I will be looking at Form Authentication and how to implement it in several sample web applications.
  • Developing Secure Web Site with ASP.NET and IIS - PartIIMay 07, 2003. Authentication is a very important element of developing secure sites. It is the starting point of a secure environment for the protected resources. I have discussed several authentication mechanisms available in ASP.NET and how they join with IIS to provide a secure platform to develop sites in Part I of this article.
  • Memory Management in .NETNov 17, 2003. This tutorial describes Memory Management in .NET.
  • Integrate Through Web Interfaces with C#Jan 08, 2004. This article proposes a way for integrating the enterprise applications through web interfaces. Since the web interfaces are widely available for many existing applications, the method may well reduce the cost of building an integration system with less time and get ride of the dependency on other resources.
  • Globalization in .NETJan 28, 2004. Now a day it is very difficult to think about building any application without globalization. If we are building an internet application, then it is very much required that our application supports all the languages with respect to the customer's locality.
  • Code Access SecurityFeb 06, 2004. Code Access Security represents a fundamentally different way of controlling access rights to protected resources. Traditionally, permissions such as access to the file system, databases or network were allocated based on characteristics of the user. All processes executed by the user would assume an equivalent set of permissions.
  • Multilingual Applications in .NETMar 24, 2004. This article explains the basic understanding on different methods of developing multilingual applications in .NET. Here emphasis is given on handling multiple languages using resource files.
  • Constructors In C#May 06, 2004. This article explains constructors in C# with sample examples including constructor overloading, static constructors, and constructor chaining.
  • Using the Tablet PC as a Flashing Restaurant Menu in C# and .NETJun 08, 2004. This is a simple application written for a restaurant using Tablet PC that allows you to list such things as lunch specials and have the colors on the board change randomly to produce an interesting flashing sign effect.
  • Avoid Memory Leaks with Destructor and DisposeJul 01, 2004. Here are two classes that allocate resources, the first class needs to implement a custom destructor and standard Dispose, but the second class doesn't need either.
  • Coloring the Console in C# Oct 25, 2004. When working with console applications in C#, you always see a black and white screen. What if we want to change the background color of the console? We can change the foreground and background color of our console application by using win32 API SetConsoleTextAttribute().
  • Getting Web Statistics for Instant Downloads in ASP.NETNov 05, 2004. One of the most important website activity parameters is the resource access statistic. Such information is necessary for many purposes - optimizing of the website content, marketing campaigns improvements and also for some diagnostic tests.
  • Multiuser XML 'Database' Web ServiceDec 01, 2004. This article shows multiple users to have simultaneous access to the document just like a database. The critical thing is how can we load a resource once and how can we have multiple users access it without collisions.
  • Performance Improvement in ASP.NET Using CachingFeb 01, 2005. ASP.NET provides caching at several levels for you to leverage and improve the responsiveness of your application by storing the page output or application data across HTTP requests and reuse it. This allows the web server to take advantage of processing the request without recreating the information and thus saving time and resources.
  • New Features of C#2.0 - Static ClassesApr 13, 2005. Static classes are used when a class provides functionality that is not specific to any unique instance.
  • Globalization Using ASP.NET Apr 19, 2005. In this article we see how to cater different contents based on the culture using Globalization in ASP.NET.
  • What is new in C# 2.0?May 30, 2005. In this article, I discuss new features added to C# 2.0.
  • Custom Assembly in Reporting ServicesJun 30, 2005. This article describes a problem that occurs when you access a custom assembly in your Reporting Services report that does not have sufficient permissions on the resources in your environment. The article also provides simple steps to grant permissions to the custom assemblies that are used in the reports.
  • How to Maintain a CodeGroup in Security Policy at Runtime?Jul 05, 2005. Whenever protected resources are accessed by an assembly, it’s permissions are determined by the code access security system of CLR. Each permission set granted to an assembly is based on the assembly's evidence (such as its URL or publisher certificate, strong name), which in turn is based on configurable security policy.
  • Globalization and Localization in .NET: Part IOct 01, 2005. In this first part of this two parts series, we will get started with globalization and localization in .NET.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IVJan 30, 2006. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll look further into Garbage Collection (GC) and some ways to keep our applications running efficiently by using static class members.
  • How to Build Multi-Language Web Sites with ASP.NET 2.0 and VS.Net 2005Feb 06, 2006. In this article, we will explore the necessary details for working with resources in ASP.NET applications and for creating international ASP.NET applications based on embedded resources and the integrated localization support.
  • Using Dispose method in C#Feb 17, 2006. This artice will explain about Finalize and Dispose method implementation in C#.
  • New features in C# 2.0Feb 18, 2006. In this article, I will learn about and use the new features in C# 2.0 added by the Microsoft designers, such as generics, anonymous methods, partial types, static classes, nullable types, and limiting access to properties.
  • Thread Synchronization using VS.NET 2005Feb 27, 2006. When two or more threads need access to a shared resource, they need some way to ensure that the resource will be used by only one thread at a time. The process by which this is achieved is called synchronization.
  • Customized Exception Handling Using Resource FileMar 03, 2006. A good exception handling should care about user as well as developer. i.e. developer can easily locate the exception entry point, may be a function or any where in a vast project, and fix it as soon as possible. So in this writing I tried some exception handlings which will consider both user and developer.
  • Using static variable and Activated Event for Building "Home" Button of Windows applicationApr 10, 2006. In this tutorial I will share experience how , just with the help of a few clicks and a few lines of code , to build a windows application with "Home" button, that allows to return to "Home" form (in fact to close all opened forms by one click) . The examples are written using C#.
  • Illustrates the use of the lock in multithreading applicationAug 17, 2006. Any application must have one or more processes. A Process is structural unit with a memory block and using some set of resources. For each executable, the Windows operating system creates some isolated memory block. This article tries to explain the use of lock basics of Multithreading in C# .Net.
  • PDF Search in SharePointSep 11, 2006. This is a small article that tells users about the PDF search in SharePoint. I have not included the exact steps that need to be taken because that has already been published before on many sites including Microsoft's. My objective is tell users where to start looking for resources if they want to search PDF documents in SharePoint.
  • Embedding and Playing WAV Audio Files in a Win Forms ApplicationJan 18, 2007. This article describes an approach to embedding WAV audio files into an application and playing them through the use of the System.Media class library.
  • Integrated Security with Web Application Jan 30, 2007. This article will give you an idea about how Integrated Security works with Web Application using Active Directories.
  • Extending ASP.NET 2.0 Menu Control To Have Tabs With Rounded CornersFeb 26, 2007. The ASP.NET Menu Control normally produces tabs which have rectangular edges. The techniques presented extend the control to create tabs with rounded corners.
  • XML Data Binding in WPFApr 11, 2007. This article describes how to bind XML data using a data template in WPF and XAML. For ease of demonstration, the XML is defined as a resource within the XAML document.
  • OleHelper for Microsoft Access (.MDB) in ASP.NET 2.0Apr 18, 2007. This article is very much similar to the Microsoft Data Access Application Block, provides static methods in a "sealed class OleHelper" where I have Execute Dataset, ExecuteNonQuery & PrepareCommand to work with Microsoft Access database.
  • WEB farm - Load Balancing in Asp.netJul 27, 2007. The concept behind the web farm is that a number of different web sites share pooled resources. They typically share a common front-end dispatcher to perform load control and distribute customer requests. They share the multiple web servers themselves.
  • Generate XML based Resource Files on the fly in ASP.NET 1.x applicationsSep 11, 2007. If internationalization was not part of your application’s initial development cycle, but required to extend it globally at a later point of time, then creating resource files from all the UI elements is a very tedious & manual process in ASP.NET 1.x. The framework presented in this article saves a developer from manually updating the resources and keeps the resx files in sync with the webforms and user-controls by automatically generating the resx files.
  • Managed Static Code Analysis in VSTS: Part ISep 24, 2007. This article attempts to explain the concept of static code analysis and tools that can be used to realize it with a focus on managed code analysis.
  • Fade Out a Form in C#Oct 30, 2007. This article describes a simple approach to fading out a form.
  • Chapter I: Resources and LocalizationFeb 01, 2008. In this chapter, you will learn all the necessary details for working with resources in ASP.NET applications and for creating international ASP.NET applications based on embedded resources and the integrated localization support.
  • Introduction to The Resources .resx and Resources Files: Part I May 05, 2008. In some cases an application needs some external resources to perform specified tasks. And I mean by external resources, those none executables data logically deployed with a given application.
  • Handle resource file - Add resources into a windows application using VS 2005: Part IIMay 13, 2008. In this article, I will show how to add resources to a windows application using tools provided by the Visual studio 2005 integrated development environment.
  • Handle resource files - Read and Write into a resx file programmatically: Part IIIMay 26, 2008. This is the third part of the resources handling where one can see how to create a resx file to stock data about our resources using code.
  • Handle resource files - read and write into a resource file programmatically: Part IVMay 29, 2008. In this article, I will give one way to create a resource format file used to stock data about our resources through code.
  • Handle resource files - Use resgen.exe to generate resources files: Part VJun 02, 2008. The resgen.exe is a wonderful tool provided by the .Net framework to generate resx, resources files. In this article I wil show the trick of how to use it in .Net.
  • Handle resource files - Generate a class with strongly typed properties from a resources file using resgen.exe: Part VIJun 10, 2008. Other functionality provided by the resgen.exe witch I appreciate a lot. This tool gives you the possibility to generate an entire class with strong typed properties.
  • Dynamic and static Rectangle in WPFAug 29, 2008. This article shows how to create dynamic and static rectangle in WPF and XAML with various drawing effects.
  • Handle resource files - Generate a class with strong typed properties using StronglyTypedResourceBuilder: Part VIISep 03, 2008. You can generate a class with strongly typed properties issued from a given resources file elements or attributes using other way than in Part VI handle resource files where the resgen.exe is invoked to achieve such task.
  • Constructor vs Static ConstructorOct 23, 2008. This article explains you the basic difference between the constructor and static constructor via example.
  • The Two Interceptors: HttpModule and HttpHandlersDec 23, 2008. Many times we want to implement pre-processing logic before a request hits the IIS resources. For instance you would like to apply security mechanism, URL rewriting, filter something in the request, etc. ASP.NET has provided two types of interception HttpModule and HttpHandler.
  • Include Files as Resources in Silverlight 2.0Mar 13, 2009. This article describes how to load an embedded bitmap programmatically.
  • Project Management Schedule Management FAQ seriesApr 13, 2009. In this article we will run through a quick FAQ for schedule management of software projects.
  • What are Properties in C-sharp and how to use them?May 19, 2009. In this article I will explain the property in C# along with practical demonstration which will help you to understand it in a simple way.
  • Static in C#May 20, 2009. In this article I m highlighting something about static. It's a simple article to make beginners understand in easy and fun way.
  • Resource Management In Silverligt 3Jul 02, 2009. This article discusses resource management in Silverlight 3.
  • File handling in C#Jul 15, 2009. In this article I have explained about file handing in C#.
  • Resource Dictionary in Silverlight 3 Using Blend 3Jul 29, 2009. In this article we will see how we can manage Styles in different files. Resource Dictionary is a cool feature available in Blend 3, where we can store our defined styles.
  • Splash Screen in Silverlight 3 ApplicationJul 30, 2009. In this article we will see how the default Splash Screen can be changed in Silverlight 3 Application.
  • Resources in WPFAug 06, 2009. This article explains basics of resources in WPF.
  • Using Static Resource in Silverlight 3 ApplicationAug 18, 2009. This article shows how to use static resource in Silverlight 3.
  • Singleton Pattern Unleashed in C#Oct 03, 2009.
  • Monitoring Database Connections using Performance CountersOct 14, 2009. ADO.NET performance counters can be used to monitor the status the connection resources that the application uses. This article concentrates mainly on monitoring database connections.
  • XML OverviewNov 14, 2009. In this article I will explain XML and how to write an XML code.
  • Static class in C#Nov 29, 2009. This article will discuss about static class in C#. Different feature of static class and different way of creating static class also will be discussed.
  • Genetic CloudJan 24, 2010. Complex optimization tasks, like travelling salesman problem, can be solved by simple algorithms with random searching component. Genetic algorithm is one of such approaches. It gives better solution on the big population sizes, but the execution time grows non-linear with population size growth. Another way to increase accuracy is to have several parallel runs. The additional resources for parallel runs could be taken in a Cloud.
  • GrayScale Image in WPFFeb 10, 2010. The PixelFormats class is used to represent image pixel formats. The class has about 2 dozens of static properties representing various pixel formsts such as BlackWhite, Gray16, Gray32Float, Gray8, Rgba64 and so on.
  • Application Startup and Executable PathApr 26, 2010. The code snippet in this article demonstrates how to use Application class static properties to get Windows Forms application startup path, executable path and user data path using C#.
  • Static Resources in Silverlight class libraryApr 26, 2010. In this article we will see how to have styles in Silverlight class library.
  • How to Use Resources in WPFJun 09, 2010. This article will show how to use resources in WPF.
  • Static class in C#Jul 28, 2010. In this article you will learn how to use Static classes in c#.
  • Creating a Silverlight Application that inserts data to a database using WCF serviceAug 02, 2010. In this article, I have created a Silverlight application that asks users to enter choices & moves to specific pages depending on the choices. I have shown here how to use merged resource dictionaries. We can also see how to create controls dynamically. Finally, this application consumes a WCF service to store data in the database using LINQ to SQL.
  • Asp.Net Web Application Globalization and Localization with help of Resource files and Custom XML filesSep 07, 2010. In this article we will know how to devlope that type of web application. Let us see in this article how to cater different contents based on the culture using Globalization in ASP.NET.
  • How to use Tool Menu in Microsoft Expression BlendSep 15, 2010. Tool Menu in Microsoft Expression Blend has the option for Creating Layer, Make Button, Make Control, Make Image 3D, Make Brush Resource, Edit Brush Resource, Font Manager, Options.
  • Static Event in C#Sep 23, 2010. There might be times when you'll want your event to perform same actions for all objects. In this article we will see how to do that.
  • Using StaticResources in WPFOct 26, 2010. Here I describe Resource markup extensions.
  • How to Pass Data Between the Forms Using the Static ConceptNov 20, 2010. This article shows how to pass data between the forms using the static concept.
  • Accessing Bitmap Locally or Directly for Windows Phone 7 Application Nov 22, 2010. In a Silverlight program, you’ve seen that a bitmap added to the project as a resource is bound into the executable. It’s so customary to reference that local bitmap directly from XAML, SilverlightTapToLoad project shows you how.
  • Using statement in C#Nov 22, 2010. The using statement defines the scope of the object/resource.
  • Working with Attributes and Resources of XAML in Windows Phone 7 Nov 30, 2010. Many classes that you use in XAML have something called a ContentProperty attribute. This word “attribute” has different meanings in .NET and XML; here I’m talking about the .NET attribute, which refers to some additional information that is associated with a class or a member of that class.
  • How to publish Managed Metadata Service across Farms in SharePoint 2010 Dec 21, 2010. In Microsoft SharePoint Server 2010, some service applications can be shared across farms. By publishing a service application, you can optimize resources, avoid redundancy, and provide enterprise-wide services without installing a dedicated enterprise services farm.
  • Chapter 5: Consolidation and Monitoring in SQL ServerDec 22, 2010. The goal of SQL Server consolidation is to identify underutilized hardware and improve utilization by choosing an appropriate consolidation strategy. With SQL Server, hardware could be considered to be underutilized when workloads are using less than 30 percent of server resources.
  • Double Hope Issue in Sharepoint/Asp.net application with IIS Jan 09, 2011. There is a common issue called Double Hope issue in IIS that troubles most Sharepoint / Asp.net applications that consume the resource in other servers.
  • Layout and Controls in WPFJan 12, 2011. Half of the battle can be won through UI and Control placement in software paradigm. All of us know that a good UI leaves extraordinary impact on the user, so this article is about control placement and control layout in WPF. So this post is all about some basic controls and resource links for them.

About Static-Resource

NA

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.
Download Free eBooks