C# Corner

Resources  
  • An Easy Way To Encode And Decode File In ASP.NETOct 13, 2017. In this article, I’ll explain a way to encode and decode a file in ASP.NET using C# and VB.NET with example.
  • Getting Started With Entity Framework Core - Database-First DevelopmentOct 12, 2017. This article is the first part of the series on Getting Started with Entity Framework Core. In this post, we will build an ASP.NET Core MVC application that performs basic data access using Entity Framework Core. We will explore the database-first approach and see how models are created from an existing database. We will also take a look at how classes become the link between the database and ASP.NET Core MVC Controller.
  • Angular Components (With Examples)Oct 12, 2017. A Component is nothing but a simple typescript class, where you can create your own methods and properties as per your requirement which is used to bind with an UI (html or cshtml page) of our application.
  • Excel To XML Using LINQOct 11, 2017. In this article we will show you the easiest way to convert Excel data into Xml files. There is a certain way to convert Excel file to Xml, for example using Excel Library (Com Component)
  • Overview Of Let In LINQOct 09, 2017. In general, Let allows create a local variable at the LinQ query. Let has the same operation as to build local variable in a loop. The example with let hast better performance than the without let example, because the first execute one time and second two time for each item.
  • ASP.NET Core 2.0 Session StateOct 09, 2017. Using an empty project from a previous post, amend Startup class ConfigureServicee() method, and add services for session and its backing store.
  • How To Use DataList Control In ASP.NET With Example in C#Oct 08, 2017. In this article I’ll present a tutorial with an example, a way to use the DataList control in Asp.Net for the displaying of information/ records from the database with using SqlDataSource.
  • Amazon SNS (Simple Notification Service) Using Visual StudioOct 07, 2017. This is the working example of the ASNS (Amazon simple notification service) you can follow the step and can implement the notification service, message service, email service using this.
  • How To Change/Switch The Database Dynamically In An ASP.NET MVC ApplicationOct 06, 2017. This is an example with code snippets to show how to switch or change the database (Connection string) dynamically while running a program in ASP.NET MVC 5 applications.
  • ASP.NET Core 2.0 Uses SignalR TechnologySep 30, 2017. I am using the current highest version in this example, of course the version number is likely to change every day, the latest version of the SignalR is not compatible with the .NET Core SDK 2.0 Preview 1 by default when creating the project Microsoft.AspNetCore.All l.
  • ASP.NET Core 2.0 Error PagesSep 29, 2017. Starting from an empty project, created in a previous post, amend the Configure() method of Startup class to use middleware needed for error handling. Below I’ve used a custom middleware (defined as lambda) to handle production exceptions.
  • Why "Service Locator" is an "Anti-Pattern" for Dependency InjectionSep 29, 2017. The Service Locator is used as a replacement for the new operator. The problem with service pattern is that it hides a class's dependencies and is a bonafide anti-pattern. In fact, it takes away a developer's clarity about the class he/she is using.
  • Create Value Object In C#Sep 28, 2017. Create a class that abstracts away (encapsulate) ‘data’ in your domain and provide methods to work on it. Below is a class I don’t consider a good Value Object.
  • XAML Value Converter With A Simple ExampleSep 27, 2017. In this article, I'm going to show you how you can use value converter in XAML to convert one format of data into another format. In our case, we'll convert a string value (value in the textbox) to a Boolean value (checked status of a checkbox).
  • Default(T) In GenericsSep 27, 2017. Default represents default value of T parameter in generics intructions. In several cases, the default keyword is an absolute unknown and we think it’s unnecessary or its functionality is null. There are many development moments with the generics classes where the default keyword can be useful.
  • Understanding Gulp Tasks In SharePoint Framework SolutionsSep 24, 2017. Let us look deeply into the Gulp tasks we use in SharePoint framework solutions. Gulp helps in automating the manual tasks done in a solution. Say for example, when you create SharePoint framework solution, you try to test the web parts using the gulp tasks. The tasks are defined using gulpfile.js present in the SPFx solution.
  • Adding Check Box Functionality In An Android App Using Android StudioSep 21, 2017. In this article, I will show you how to create am Android app using Android Studio. Android Checkbox is a type of two state button, either checked or unchecked. There can be a lot of usage of checkboxes. For example, it can be used to know the hobby of the user, activate/deactivate the specific action etc.
  • Introduction To Tag Helpers In ASP.NET CoreSep 18, 2017. Tag helper is a new feature in ASP.net MVC. It enables server-side code to create and render HTML elements in Razor View. It is feature of Razor View engine. They are the C# classes which participate in view generation by creating the HTML elements. Using the tag helper, we can change the content of HTML element and add additional attributes to the HTML element. It is very similar to HTML helper in ASP.net MVC.
  • Selection Manager For WPF/MVVMSep 17, 2017. This article presents the idea and implementation of a class to manage the selection of only one element in different linear and hierarchical structures.
  • Using MPMoviePlayer In Xamarin iOSSep 15, 2017. Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows Phone, Android, iOS). In Xamarin platform, the code sharing concept is used. In Xamarin Studio, Visual Studio is also available.
  • Use Of HttpResponseMessage In WebAPISep 11, 2017. Here, you will learn the uses of HttpResponseMessage WebApi. For better understanding we will go step by step with simple examples.
  • Getting Started With Bing Emotion APISep 08, 2017. In this tutorial, we will learn how to use Bing Emotion API. In our previous example of the cognitive service demo, we had combined two cognitive services, Bing Speech API and Bing Emotion API, so as to find images using speech to text (STT). To extend this demo, we will be using Bing Emotion API which will detect the emotions of a person from the image that we had searched using Bing Image Search API.
  • Getting Started With Bing Image Search APISep 08, 2017. In this tutorial, we will learn how to use Bing Image Search API. Remember, in our first example of cognitive services, we had created a demo Bing Speech API. In this tutorial, we will extend the same demo to search images, i.e., we will pass the text result of Bing Speech API to Bing Image Search API.
  • Aspect Oriented Programming In C# With RealProxy classSep 07, 2017. Example of implementing logging using RealProxy class.
  • Use Of Union, Intersect, Distinct And Except In LINQSep 01, 2017. Here, you will learn the uses of Union, Intersect, Except, and their differences, To get a clear picture, we will go with examples.
  • Building A .NET Core 2.0 Class LibraryAug 31, 2017. In my previous tutorial, Getting Started with .NET Core 2.0, we learned how to build our first console app using .NET Core 2.0. We also learned how to package and deploy the application so it can be used by other users.
  • Use Of Deferred And Immediate Query Execution In LINQAug 31, 2017. Here, you will see about query execution in linq and what is deffered query execution, what is immediate query execution and it's differences, we will see with example for better understanding.
  • The Value Of Coaching And The Dangers Of TellingAug 15, 2017. I have led many global training sessions on leadership and coaching. I typically start by asking, “what is coaching?”. The responses of most people gravitate towards an answer consisting of making people better in some way. If you look up the word “coach” in the dictionary the first definition is “a large usually closed four-wheeled horse-drawn carriage having doors in the sides and an elevated seat in front for the driver”. People equate coaching to “moving forward” or “getting someone from point A to point B”.
  • Dependency Injection - Part 3 - Implicit Vs Explicit DependenciesAug 12, 2017. If a component or class depends upon other components to complete its operations, then these other components are dependencies for this class. Our class can have these dependencies as implicit or explicit dependencies.
  • Dependency Injection - Part Two - Five Reasons To Write Loosely Coupled CodeAug 09, 2017. A loosely coupled application has good isolation among its classes, modules and assemblies. Therefore, if we make a change to one part of the application, we only need to update the relevant modules. We do not need to make changes throughout the application.
  • Dependency Injection - Part One -Tightly Coupled ApplicationAug 07, 2017. It is a best practice to use interfaces instead of concrete classes. These interfaces can then be mocked at the time of unit testing, which will prevent any call to the actual database. Also, it is a good practice to stop "newing-up" objects in classes.
  • Facebook Login Using Xamarin.Auth In Xamarin iOSAug 04, 2017. Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows phone, Android, iOS). In Xamarin platform, the code sharing concept is used. In Xamarin Studio, Visual Studio is also available.
  • Writing Code With Programming Ligatures In Visual StudioAug 01, 2017. Almost all visual studio developers are already in love with Consolas font. Consolas is an awesome, top ranked font to write code. But sadly, Consolas doesn't has any ligature support for us. What is ligature in a language? Typographic ligature occurs when two or more letters are joined as a single letter. For example AE > Æ, OE > Œ etc. So how can we carry ligature in our code in visual studio? There are plenty of fonts to write code with ligature support, such like- Fira Code, HasKlig, Monoid and etc.
  • ImageView In Xamarin Native Platform With ExampleJul 31, 2017. After the process completes, the Xamarin dashboard appears. At the top right, you will see Solution Explorer. There is your application solution.Select application name; extract to resources. The Layout folder appears in which there is Main.axml* file.
  • Entity Framework CRUD Operation Performed With SQL Stored Procedure Using ADO.NET Entity Data ModelJul 31, 2017. You can see my pervious article for Entity framework with Ado.Net data Model connection and how to create a new entity framework project and sql database connection maintained with created entity framework project. Also you can see how to create a class in entity framework based on data table.
  • SharePoint REST Calls With SPHttpClient Class In SPFx WebpartsJul 31, 2017. Let us look at the usage of sphttpclient in SPFx solutions for making REST calls.
  • Routing In Angular 2 With TypeScript And Visual Studio 2015 - Part OneJul 29, 2017. In this article, we are going to learn how to implement routing in Angular 2 with an example. Routing is a concept which helps users to navigate from one view to another view of the application. Similarly, routing in Angular 2 helps users to navigate from one view to another view depending upon the URL which user enters in the browser.
  • Built-In Filter Type In ASP.NET Core MVCJul 29, 2017. The ASP.net core framework includes five built-in filter types that we can sub-class and customize based on our requirement. The framework supports following built-in filters type.
  • Component In Angular 2 and How to Create Nested Component in Angular 2Jul 25, 2017. In this article, we will learn about Angular 2 components and we will also see how to create a nested component.
  • Learn Web API : Using SQL Helper ClassJul 25, 2017. This article demonstrates how to use Web API Using SQL Helper Class with easy to use data base access in Visual Studio 2017.
  • Code First Development Approach With Entity FrameworkJul 20, 2017. Which one to use in your project is completely your choice and also what you already have in place. Meaning are you designing/developing something from scratch or you already have got DB or domain classes, and also what are your preferences, meaning do you prefer to design classes first and then let your DB gets developed from those classes or you like to design visual class diagram first.
  • UITableView : Swipe-Right In Xamarin iOS AppJul 19, 2017. In this article, you will learn how to Swipe Right Using UITableView in Xamarin iOS, using Xamarin Studio. Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows phone, Android, iOS). In Xamarin platform, the code sharing concept is used. In Xamarin Studio, Visual Studio is also available.
  • UITableView in Xamarin iOS AppJul 18, 2017. In this article, you will learn how to create a list using UITableView in Xamarin iOS, using Xamarin Studio. Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows phone, Android, iOS). In Xamarin platform, the code sharing concept is used. In Xamarin Studio, Visual Studio is also available.
  • BoxView In Xamarin Cross Platform With ExampleJul 17, 2017. The BoxView is a simple view, useful for drawing solid color rectangles. BoxView is a useful stand-in for images or custom elements when doing initial prototyping. BoxView has a default size request of 40x40. Used creates border property in page.
  • Multithreading In C# .NetJul 16, 2017. If you have a program that execute from top to bottom, it will not be responsive and feasible to build complex applications. So .Net Framework offers some classes to create complex applications.
  • Best Practices For MVCJul 14, 2017. Add a class library project to the solution, named Store.Model. This library is where we ‘ll keep all of our domain objects. Entity Framework will count on them in order to build the database but we are not going to configure Code First using DataAnnotations attributes on this project. Instead, we are going to put all the Code First configuration in specific Configuration classes using the Fluent API. Add a folder named Models.
  • How To Create A List/Library Programmatically In SharePoint 2013Jul 13, 2017. We need to install Visual Studio in our machine for creating a list using SharePoint Server Object Model. The Server Object Model will be executed in the server side & it provides a rich set of classes in representing & manipulating SharePoint objects. Server object model is like production server environment to access the data where Sharepoint is installed on the machine.
  • Simulate SharePoint Online Timer Jobs Using Azure FunctionsJul 05, 2017. SharePoint Server provides native Timer Jobs that inherit SPJobDefinition class to run at regular intervals defined in the SPSchedule object. This way we can create solutions that have to be iteratively run to process logic at regular intervals. However, in case of SharePoint Online Native Timer Jobs cannot be used.
  • Two-Class Boosted Decision TreeJul 03, 2017. Two-Class Boosted Decision Tree module creates a machine learning model that is based on the boosted decision trees algorithm. A boosted decision tree is an ensemble learning method in which the second tree corrects for the errors of the first tree, the third tree corrects for the errors of the first and second trees, and so forth. Predictions are based on the entire ensemble of trees together that make the prediction.
  • Deploying A Simple LUIS Bot Using Microsoft Azure Bot ServicesJun 28, 2017. LUIS stands For Language Understanding Intelligent Service which offers a fast and effective way of adding language understanding to applications. With LUIS, you can use pre existing, world class, pre built models from Bing and Cortana whenever they suit your purposes and when you need specialized models, LUIS guides you through the process of quickly building them.It is also part of Microsoft Cognitive Service.
  • Getting Started With QnA Maker ServiceJun 28, 2017. In simple language, it is a service to educate a bot with static answers for specified set of questions. Let’s take an example of FAQs. FAQs are set of questions and answers which are going to remain same irrespective of user.
  • Manage System Processes Using Windows PowerShellJun 28, 2017. You can easily manage system processes using Windows PowerShell by just typing some simple Cmdlets. Below are some of the examples that help you to manage system processes using Windows PowerShell.
  • Understand The Power Of Windows PowerShell Pipeline ( | )Jun 26, 2017. Windows PowerShell pipeline allows us to join two or more statements with a pipe symbol, sometimes called the '|' bar key. This tells PowerShell that we want to take the output of one command and pass it as the input to the next command. Let’s look at simple example to better understand the power of pipeline in Windows PowerShell.
  • Working With PowerShell DrivesJun 25, 2017. Windows PowerShell drives are data store locations that you can access like any other ?le system drives in Windows PowerShell. The Windows PS providers create some drives for you, such as the ?le system drives (including C: and D:). Below examples provides you how to work with PowerShell Drives in Windows PowerShell.
  • Managing System Services Using Windows PowerShellJun 24, 2017. You can easily manage system services using Windows PowerShell by just typing some simple Cmdlets. Below are some of the examples that help you to manage system services using Windows PowerShell.
  • React Tutorials - Day Three - ComponentsJun 23, 2017. Today, we will learn about components. Component are the heart of React, components let you split the UI into independent and reusable sections. In React to create a component we need to extend the “React.Component” class.
  • How To Operate With Data Persistence In Xamarin.Forms - Part TwoJun 23, 2017. In this one, I’ll show you how to use the file system to save data using Xamarin with the .Forms UI Technology and the PCL (Portable Class Library) code sharing strategy.
  • Marking Methods "Obsolete" In C# Class LibraryJun 14, 2017. In this article, I will explain how a method can be marked as obsolete in C# class library.
  • Understanding React Components On SPFxJun 13, 2017. In this article, let us see how React JS components work along with multiple class hierarchy using SharePoint Framework components.
  • Built-In And Custom AngularJS Filters With ExamplesMay 25, 2017. This article will demonstrate built-in as well as custom AngularJS Filters with examples on Plunker Editor.
  • Google Maps - Traffic Signal Between Source And Destination Using Bootstrap And ASP.NET MVCMay 22, 2017. This real time example can be implemented in an online transportation network company like Ola or Uber.
  • Toolbar Icon In Xamarin Cross Platform With ExampleMay 19, 2017. Toolbar Icon In Xamarin Cross Platform with an example.
  • GestureRecognizers In Xamarin (Cross Platform) With Image ExampleMay 17, 2017. In this article, you will learn about Gesture Recognizers In Xamarin (Cross Platform) with an Image example.
  • Toolbar Item In Xamarin Cross Platform With Toolbar Order ExampleMay 17, 2017. Toolbar Item In Xamarin Cross Platform With Toolbar Order Example.
  • Write HTML Code In Xamarin Cross Platform With Table ExampleMay 17, 2017. You build your mobile app entirely in HTML, however those apps can suffer from performance problems when trying to accomplish complex processing or UI effects and are also limited in the platform features which they can access.
  • Simplifying MVVM INotifyPropertyChanged On Xamarin.FormsMay 12, 2017. The goal is simplifying MVVM INotifyPropertyChanged in Xamarin Forms therefore making it unnecessary to keep inheriting base classes and handling the setter of each ViewModel Property.
  • Built-In And Custom AngularJS Services With ExamplesMay 08, 2017. This article will demonstrate built-in as well creating your own custom AngularJS Services with examples on Plunker Editor.
  • Class And Style Bindings In Angular 2 - Part EightMay 04, 2017. In this article, we are going to learn how to bind classes and styles to HTML elements.
  • Two Class Support Vector MachineMay 03, 2017. An overview of Two Class Support Vector Machine.
  • Custom Collection Classes In C#Apr 06, 2017. This article presents an overview of custom collection classes in C#.
  • Mutable And Immutable Class In C#Mar 29, 2017. In this article, we are going to learn about mutable and immutable class in C#.
  • Example For *Ngif Condition In Angular 4Mar 28, 2017. Example For *Ngif Condition In Angular 4.
  • JavaScript Interview Day # 1 - How To Create A ClassMar 28, 2017. JavaScript interview tips - How to create a Class.
  • Overview Of List Collection Class In C#Mar 28, 2017. Overview Of List Collection Class In C#.
  • How To Organize Classes Using NamespacesMar 19, 2017. How To Organize Classes Using Namespaces.
  • Test Driven Development (TDD) - Part TwoMar 14, 2017. This article explains the options available in Visual Studio to work with Test Driven Development and also present examples about writing unit test cases.
  • SOLID Architectural Pattern With Real Time ExampleMar 09, 2017. SOLID Architectural Pattern with Real Time example.
  • Visual Studio 2017 New FeaturesMar 08, 2017. This article tries to introduce you to some of the new features in Visual Studio 2017 IDE. Not all the new features of Visual Studio 2017 are covered here. Also, not all the below features are available for all the languages. This article demonstrates the examples, using C# Code and some features supported for C# are covered here.
  • How To Create Simple Web API Using ASP.NETMar 07, 2017. In this article, I'll give you a simple example of how to create a Web API in ASP.NET MVC.
  • How To Use The Array List Class In C#Mar 07, 2017. In this article, let's see the uses of array list classes in C#.
  • Introduction To AES And DES Encryption Algorithms In .NETFeb 17, 2017. In this article, I am going to explore encryption and decryption. We will see some of the encryption algorithms with C# example code.
  • Model Class Validation Testing Using NunitFeb 15, 2017. In this article, we are going to learn about validating a Model class property that has data annotation, using Nunit.
  • Understanding Startup Class In ASP.NET CoreFeb 10, 2017. In this article you will learn about Startup Class in ASP.NET Core.
  • Creating Sliding Tab Layout Interface Using Xamarin Android Using Visual Studio RC 2017Feb 06, 2017. This Android app development tutorial enables you to understand the Tab layout. For example, I demonstrate how to slide a Tab from the layout to another page layout.
  • Send Mail Using SendGrid In .NET CoreFeb 01, 2017. Sending mail in .NET Core is not easy, as .NET Core does not support SMTPClient class. So, this article explains how we can send mail in .NET Core using SendGrid.
  • Introduction To Entity FrameworkJan 26, 2017. In this article, we will see what Entity Framework and Object Relational Mapping in Entity Framework are. We will understand this with an example.
  • Class And Constructor In TypeScript Using Visual Studio CodeJan 23, 2017. In this article, you will learn about class and constructor in TypeScript, using Visual Studio Code.
  • Convert DateTime To String Format Using IQueryableJan 10, 2017. In this article, you will learn how to convert DateTime to string (yyyy/mm/dd) format in ViewModel/Whatever class with IQueryable.
  • Bootstrap Grid SystemDec 30, 2016. In this article, you will learn more about the Bootstrap grid system, grid class, and grid system rules.
  • C# Tutorial Part 2 - The First Error In Your ApplicationDec 28, 2016. This article gives an introduction to namespace, class, and methods used when an error occurs.
  • Fruit Benefits APP Using Master Detail Page In Xamarin.Forms Application For Android And UWPDec 24, 2016. In this article, you will learn how to use Master Detail page in Xamarin.Forms Application for Android and Universal Windows Platform with XAML and Visual C# in cross platform Application development with an example of Fruit Benefits app.
  • AJAX Control Toolkit Tutorial - Cascading Extender - Part ThirteenNov 30, 2016. In this article, you will learn about Cascading DropDown Extender in AJAX Control Toolkit , with examples.
  • Using Ionic Tabs Control Classes In Visual Studio 2015Nov 27, 2016. In this article, you will learn about how to add Ionic tabs control class in Ionic app, using Visual Studio 2015.
  • Build The Ionic App With Radio Button Classes In Visual Studio 2015Nov 27, 2016. In this article, you will learn how to add Ionic Radio button in the Ionic app, using Visual Studio 2015.
  • Using Range Classes In Ionic Blank App Using Visual Studio 2015Nov 24, 2016. In this article, you will learn about how to add Range classes in Ionic app, using Visual Studio 2015
  • Working With Ionic Check Box Class In Ionic Blank App Using Visual Studio 2015Nov 24, 2016. In this article, you will learn about how to add Check Box class in Ionic app, using Visual Studio 2015.
  • Working With Ionic Toggle Classes In Ionic Blank App Using Visual Studio 2015Nov 23, 2016. In this article, we are going to see how to start using Toggle Classes in Ionic app, using Visual Studio 2015.
  • Understanding GOF Design Pattern With Simple Examples - Part OneNov 20, 2016. In this article, we will go through some of the highly used design patterns, with simple examples.
  • Azure Advisor - Your Personal Cloud AssistantNov 20, 2016. In this article, we will learn what Azure Advisor is, and its features, along with a few examples of its recommendations.
  • Working With Ionic List Item Class In Ionic Blank App using Visual Studio 2015Nov 17, 2016. In this article you will learn how to add List Item Class in Ionic App using Visual Studio 2015

About Example-of-Dictionary-class

NA
File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!