C# Corner

Resources  
  • MVC 5 Demo Project With Entity Framework (DB First)Nov 23, 2017. MVC project has been set up. Now, make a new C# class library project which will act as a DAL layer and Entity Framework will be handled through this project.
  • Simplest WPF Dependency Property For Beginners On Background ColorNov 19, 2017. Dependency property is not wrapped over any private members unlike CLR properties, and it is also stored in Key-Value pairs inside the DependencyObject host instance. You must use Dependency properties if you need to create and apply properties on custom usercontrols, or change properties based on external inputs like Theme, Style, animation etc, or while applying data binding or set with a resource (static/dynamic) .
  • Passing Parameters To Middleware In ASP.NET Core 2.0Nov 15, 2017. I discussed in an earlier post that it is good practice to define middleware in a separate class and add to the pipeline using extension methods. We may also need to pass information to our middleware classes though and I’ve come across two patterns for this when digging into ASP.NET Core source code and other samples online.
  • What Is Struct And When To Use Struct In C#Nov 15, 2017. 'Struct' keyword is used to create a structure. A structure can contain variables, methods, static constructor, parameterized constructor, operators, indexers, events, and property. A structure can not derive/inherit from any structure or class. A structure can implement any number of interfaces. Structures provide better performance.
  • Azure Table Storage In ASP.NET Core 2.0Nov 14, 2017. Add a class to encapsulate storage access. Add a private helper method to access storage
  • How To Use StringBuilder And File Class For .NET ApplicationNov 14, 2017. Here, I am going to share how and why should we create error log in our application.
  • Introduction To Xamarin.Android Using C# - Part OneNov 10, 2017. Xamarin.Android will create native Android applications using modern language (C#), .NET Base Class Library Visual Studio. Xamarin is a cross-platform development tool. It solves dilemmas many developers face when developing cross-platform apps: separate coding languages and UI paradigms. With Xamarin, you can use C# for iOS, Android, and Universal Windows apps. And with Xamarin Forms, interface design for all three platforms can be accomplished within its XAML-based framework.
  • Learn Angular 4.0 In 10 Days - Day OneNov 07, 2017. HyperText Markup Language (HTML) was invented in the year of 1990 by Tim Berners-Lee—a famous physics and computer scientist—while he was working at CERN, the European Organization for Nuclear Research. He was motivated to discover a better solution to share information among the researchers of the institution in a very quick and easy way. To support that, he also created the HyperText Transfer Protocol (HTTP) and its first server, giving rise to the World Wide Web (WWW). At that time, HTML was used just to create static documents with hyperlinks, allowing the navigation between them.
  • Binding DropDown List Using Tuple In ASP MVCNov 05, 2017. Tuple is a generic static class that was added to C# 4.0 and it can hold any amount of elements, and they can be any type we want. So using tuple, we can return multiple values.One great use of tuple might be returning multiple values from a method. It provides an alternative to "ref" or "out" if you have a method that needs to return multiple new objects as part of its response.
  • Three Digit Sum Using Tuple in C#Nov 02, 2017. In this article, we will be discussing an algorithm which returns possible (no. of pairs) digit pairs that are equal to a given number (6) using Tuple class.
  • SystemDataPaths In UWP (Windows 10 Fall Creators Update Features)Oct 31, 2017. This article explains about how to get system , app , user based path information. This SystemDataPaths, UserDataPaths, AppDataPaths class will be supported on Windows 10 Fall creators updated version build or greater and Windows 10 SDK 16999.
  • Getting Started With Receipt Card Design Using Microsoft Bot FrameworkOct 29, 2017. The Bot Framework supports different type of rich cards and provides a richer interaction experience to the user. In this article, I will show how to integrate Receipt card UI design in a Bot Application. If you are developing a shopping card Bot chat application; receipt card is very important. Receipt card class has property as a list of items, total, tax, vat, title and image. We can re-use all receipt card properties and add tab action event for navigating to original invoice website.
  • Add Class Library In ASP.NET Core Using .NET Core Command-Line Interface (CLI)Oct 29, 2017. This article explains how to add Class Library in ASP.NET Core using .NET Core Command-Line Interface (CLI) with a simple way. Before reading this article, read the previous parts of this article using below article link.
  • Office 365 Public CDN OverviewOct 27, 2017. Microsoft has recently announced (over a months’ time ago now as I am writing this article) availability of Office 365 Public Content Delivery Network (CDN). This gives us the good option to host the static content such as JavaScript files, CSS, images, documents in CDN. The files in CDN will help better performance with SharePoint pages.
  • Debugging Tips - Part TwoOct 27, 2017. While working on complex classes/objects, it really takes two more clicks to either add that object to the Watch window or expand the object in visualizer and navigate to a specific property.
  • Debugging Tips - Part OneOct 24, 2017. A cool attribute to save some debugging time is DebuggerTypeProxy (Namespace: System.Diagnostics). Using this attribute, you can write your own logic to interpret the object at debug time. Meaning, if you have a list of class objects then you can project on certain properties and force debugger to show the value off of this proxy class. This attribute is applicable to Structures, Classes and Assemblies.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • WebGrid Custom Paging Links To Avoid Load On Server Using Stored Procedure And ASP.NET MVCSep 27, 2017. I will show you how to fetch the data dynamically from the database and bind to the WebGrid control, using the stored procedure in MVC 4.0. In this blog, today, I will show you how to write code in ASP.NET MVC for implementation of WebGrid Control using Static Data. In later sessions, I will show you the process of using GridView Dynamically, that means using SQL Server data source.
  • Serve Static Files In ASP.NET Core Using Visual Studio 2017Sep 18, 2017. This article explains about static files and how to set default page using static files in ASP.NET using Visual Studio 2017 in a step by step way.
  • 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.
  • ASP.NET Core 2.0 Static FilesSep 13, 2017. Static files can also be served from folders outside wwwroot by passing in StaticFileOptions to middleware and setting a FileProvider and RequestPath. This is useful when you want authorised access to files e.g. by returning FileResult action result from a secure controller.
  • Aspect Oriented Programming In C# With RealProxy classSep 07, 2017. Example of implementing logging using RealProxy class.
  • 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.
  • Static Resource Using Xamarin.Forms Version (1.0)Aug 22, 2017. Xamarin is a platform that allows us to create multi-platform mobile applications for platforms like Windows, iOS, and Android, through a single integrated development environment (IDE). We will discuss how to create a Static Resource using Xamarin.Forms (or) cross-platform from VS2017.
  • 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.
  • 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.
  • 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.
  • 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.
  • Cache Headers For MVC File Action Result (ASP.NET Core 2.0 Preview 2)Jul 25, 2017. I’m pretty sure that you are familiar with StaticFiles middleware of the framework. All it does is serve static files (CSS, JavaScript, image, etc.) from a predefined/configurable file location (typically from inside the web root, i.e., wwwroot folder). But along the way, it also does some cache headers configuration. The reason behind this is you don’t want your server to be called up every time for a file that doesn’t change frequently. Let’s see how a request for a static file looks in the browser’s network tab.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • Building .NET Core Basic Application With Static Files - Day ThreeMay 09, 2017. In this article, we will discuss how to access static files like html files in asp.net core applications.
  • 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#.
  • 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.
  • 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#.
  • How To Customize Static And Dynamic Column Chart In WPF With MVVM Pattern Using Prism LibraryMar 01, 2017. In this article, I will demonstrate how you can customize a Column chart like changing foreground color, background color, and label transformation of either static or dynamic WPF with MVVM pattern, using Prism library.
  • Static And Dynamic Pie Chart In WPF With MVVM Pattern Using Prism LibraryFeb 26, 2017. In this article, I will demonstrate how you can create either a static or dynamic Pie chart in WPF with MVVM pattern, using Prism library.
  • Static And Dynamic Area Chart In WPF With MVVM Pattern Using Prism LibraryFeb 21, 2017. In this article, I will demonstrate how you can create either static or dynamic area chart in WPF with MVVM pattern using Prism Library.
  • How To Hide The Legend In Static And Dynamic Column Chart In WPF With MVVM Pattern Using Prism LibraryFeb 18, 2017. In this article, I will demonstrate how you can hide the legend in a column chart, which is either a static or dynamic WPF with MVVM pattern, using Prism library.
  • Static And Dynamic Line Chart In WPF With MVVM Pattern Using Prism LibraryFeb 15, 2017. In this article, I will demonstrate how you can create either a static or dynamic line chart in WPF with MVVM pattern, using Prism Library.
  • 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.
  • 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.
  • 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.
  • Azure Virtual Machine - Configure Static IP AddressJan 17, 2017. In this article, we will learn how to configure a static IP address to a virtual machine.
  • Static Variable - A Code SmellJan 16, 2017. This article will explain the disadvantages of Static variables.
  • 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.
  • Static And Dynamic Column Chart In WPF With MVVM Pattern Using Prism LibraryJan 04, 2017. In this article, I will demonstrate how you can create either a static or dynamic column chart in WPF with MVVM pattern, using Prism Library.
  • 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.
  • 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.
  • 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
  • Introduction To ASP.NET Core, WEB API And Repository Class- Part One Nov 16, 2016. In this article you will learn an introduction to ASP.NET Core, Web API and Repository Class.
  • Working With Button Class In Ionic Blank App Using Visual Studio 2015Nov 14, 2016. In this article, you will learn how to add button control in Ionic app, using Visual Studio 2015.
  • Working With Color Classes In Ionic Blank App Using Visual Studio 2015Nov 12, 2016. In this article, you will learn how to start using the Color classes in Ionic app, using Visual Studio 2015.
  • SharePoint Programming With TypeScript - Object Oriented ApproachNov 11, 2016. In this article, you will learn about implementing class, constructor, methods in SharePoint programming, using TypeScript.
  • Office 365/Sharepoint Online - PowerShell Script To Call Search API And Get The ResultNov 10, 2016. In this article, I will explain using KeywordQuery class from PowerShell script and writing results to .CSV files. I will also explain the scenario where we need to use Search from the PowerShell script.
  • Adding Methods In Dynamic ClassOct 06, 2016. In this article, you will learn about adding the methods in a dynamic class.
  • Assign Static IP To Azure Virtual Machines Within A Virtual NetworkOct 01, 2016. In this article, you will learn about assigning a static IP to Azure Virtual Machines within a Virtual Network.
  • Using Generics With C#Sep 13, 2016. Generics cater many of the benefits of strongly typed collections as well as provide higher quality and performance boost code.
  • AngularJS DirectivesSep 12, 2016. In this article, you will learn about Directives in AngularJS.
  • When To Use Abstract Class and Interface In Real ProjectsSep 03, 2016. In this article, you will learn when to use an abstract class and an interface in real projects.
  • .NET Core Code First Migration Using Class LibraryAug 31, 2016. In this post, we are going to elaborate how to work with EF code first migration using .NET Core class library.
  • Dynamic Class Using C#Aug 21, 2016. In this article, you will learn how we can generate dynamic C# code, using CodeDOM.
  • Serial Class Per Universal Windows Platform - Part TwoAug 16, 2016. In this article, you will learn about serial class per Universal Windows Platform.
  • First Class Function In JavaScriptAug 15, 2016. In this article, you will learn about First Class Function in JavaScript.
  • What Is MVC and Why Do We Use MVC?Aug 03, 2016. This is a brief discussion about MVC and how we use MVC rather than other ASP.NET architecture, like WebForms.
  • Dynamic Validation Using JqueryAug 03, 2016. In this article, we will learn how we can validate a form dynamically without using any static IDs.
  • Validation Using Data Annotations In MVCJul 29, 2016. In this article, we will learn the validation in MVC, using Data Annotation Class. We will use this for both sides (Client side validation and Server side validation).

About Static-Classes

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!