C# Corner

Resources  
  • Implementing Inheritance (Base-Class/Derived-Class) model in WPF.Mar 17, 2009. This article shows how to implement inheritance modal in WPF and a practical scenario to get a feel of concept.
  • ASP.NET Core 2.0 Response CompressionOct 16, 2017. When you’re unable to use the compression features of web servers (IIS, Apache, Nginx), ASP.NET Core provides an alternate option, Response Compression middleware. It’s performance won’t match server based compression features though.
  • C# 7.2 New Features With Visual Studio 2017Oct 16, 2017. This article explains the new features of C# 7.2. It covers ‘ref readonly’, ‘private protected’ access modifier, Digit Separator After Base Specifier (Leading Digit Separator) and Non-trailing named arguments.
  • Using Client Side Response Routing In Voice Of The CustomerOct 13, 2017. This article is about using client side response routing. We need to show/hide survey question based on the selection in previous questions. In this article we are going to share steps to implement same.
  • 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.
  • Understanding Translator Speech API In AzureOct 12, 2017. Microsoft Translator Speech API is a cloud-based automatic translation service. The API enables developers to add end-to-end, real-time, speech translations to their applications or services.
  • ASP.NET Core 2.0 URL RewritingOct 11, 2017. URL Rewriting is about modifying the request URL based on custom rules in order to decouple the address from the underlying resource. This could be for reasons like security, SEO, user friendly URL and redirect HTTP to HTTPS etc.
  • Create A Subsite By Selecting A Template Using AngularOct 11, 2017. In this article, I am going to explain how to create a subsite programmatically based on a selected template using AngularJS and REST API call.
  • Logging Exception in Database Using CustomFilter ExceptionOct 11, 2017. As per request from one of my followers I am writing this article, which will explain how we can handle Errors in an MVC application. In this article I am also going to explain how we can log our exception message in our Data Base.
  • 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 Connect Facebook to Twitter With Microsoft FlowOct 08, 2017. Microsoft Flow is a cloud-based service. It allows us to react to an event in one place and do something with the data from that event in another one service.
  • Starting With Microsoft TeamsOct 05, 2017. Microsoft Teams is a chat based workspace in Office 365. It enables the users to have the contents from all office 365 applications in a single place and it even allows us to connect with third party applications through Connectors.
  • 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.
  • 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.
  • SharePoint 2016/2013 - Event Log Monitoring By PowerShell AutomationSep 27, 2017. This article is based on the requirement I recently encountered where I was required to monitor a specific exception type and if it occurred the Admins needed to be notified at the same time.
  • Web API Token Based Authentication With Angular - Part TwoSep 26, 2017. This article will demonstrate about how to implement Token Based Authentication in Angular JS application. In my previous article, I have explained how to implement Token Based Authentication in Web API.
  • How To Customize UI-Grid Height DynamicallySep 22, 2017. In this article, you will learn how to customize UI-Grid height dynamically based on record count list.
  • 35 Essential Basic-Advanced SQL Query-Questions Asked In Technical InterviewsSep 19, 2017. These are all query-based questions asked in tech interviews, including some simple looking tricky one liner SQL statements and joins.
  • Create A Website Having Azure Active Directory Authentication Using Visual StudioSep 19, 2017. Azure Active Directory (Azure AD) is Microsoft’s multi-tenant, cloud based directory and identity management service. Azure AD combines core directory services, advanced identity governance, and application access management. Azure AD also offers a rich, standards-based platform that enables developers to deliver access control to their applications, based on centralized policy and rules.
  • 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.
  • Introduction To SharePoint Framework (SPFx) - Zero To Hero Series - Part OneSep 17, 2017. SharePoint Framework is also abbreviated as SPFx. SharePoint Framework offers modern technologies, Node-based development, TypeScript, etc. that are applied to SharePoint and Office 365 development.
  • 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.
  • Step By Step Procedure To Create A Microsoft FlowSep 14, 2017. Microsoft Flow is a part of Office 365 suite which is a cloud-based software tool that allows users to create an automated workflow across multiple applications and services without the need for developer help. Microsoft flows is built on top logic app engine. But as this app is built for targeting business personnel, the total process is UI based. To create a flow, the user specifies what action should take place when a specific event occurs.
  • GitHub Extension In Visual Studio 2017Sep 13, 2017. In this article, I will explore the GitHub Extension for Visual Studio 2017. GitHub is a web-based graphical interface Git or version control repository that mostly used for code. It provides for each project access control and several collaboration features like bug tracking, feature requests, task management, and wikis.
  • ASP.NET Core 2.0 EnvironmentsSep 12, 2017. Starting from an empty project, discussed in a previous post, modify the Configure() method to use the IHostingEnvironment to call different middleware based on current environment.
  • New Features In ASP.NET Core 2.0Sep 07, 2017. ASP.NET core is a significant redesign of ASP.NET. It is an open source, cross platform framework for developing cloud based applications like web applications, IoT applications, and mobile backend applications.
  • How To Consume Web API Through SSIS PackageSep 07, 2017. In this article, I have illustrated the purpose of SSIS with Web API. It shows how SSIS can use Web API to do certain operations, like updating the database table based on Service response, and process the data, etc.
  • Aspect Oriented Programming In C# With RealProxy classSep 07, 2017. Example of implementing logging using RealProxy class.
  • Web API Token Based Authentication With Angular - Part OneSep 06, 2017. Authentication is a vital process in system programming. Authentication means verifying the user who is accessing the system. Today we are using modern devices that have different types of Apps or software and sometimes we directly access the website from browser. To access this application, we probably need to pass our credentials and these systems verify it. If you are valid user then it will allow accessing the system otherwise not.
  • Learn About Azure Cognitive ServicesSep 01, 2017. Microsoft Cognitive Services (earlier known as Project Oxford) provides us the ability to build intelligent applications, just by writing a few lines of code. These applications or services are deployed on major platforms like Windows, iOS, and Android. All the APIs are based on machine learning APIs and enable developers to easily add intelligent features – such as emotion and video detection; facial, speech and vision recognition; and speech and language understanding – into their applications.
  • 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.
  • New in Machine Learning - An Intent Based Network ManagementAug 28, 2017. Implementation and application of Machine Learning are growing rapidly across different industries. The next big thing is Intent-Based Network or IBN.
  • Deep Dive Into Xamarin With Azure Mobile ServiceAug 26, 2017. This article shows you how to add a cloud-based backend service to a Xamarin.Forms app.
  • Responsive GridView Using DataTables Plug-inAug 24, 2017. In this article, we will learn how to make an ASP GridView responsive using jQuery based DataTables plug-in.
  • Virtual Machine Scale SetAug 23, 2017. Virtual Machines are highly flexible such that they can be changed in their size and the performance based on the requirement of the user. The resources which we actually require can be decided by us and then the user can be able to scale up or down the Virtual Machine. When making changes to the Virtual Machine size, the cost that is charged for the Virtual Machine will also vary. Here the size of the Virtual Machine will include the number of cores, the Random-Access Memory, number of data disks, the IOPS range, SSD size, load balancing feature and premium disk support.
  • Dependency Injection - Part Four -Embracing AbstractionAug 18, 2017. Dependency Injection (DI) is a technique that helps us achieve loose coupling between objects and their collaborators. In this post, we will use constructor based dependency injection, however, we are not going to use any DI container for now.
  • QR-Code Scanning Using Android StudioAug 17, 2017. Android is one of the most popular operating system for mobile. In this article how to scan QR code without camera options using Android studio Android is kernel based operating system that allows the user to modify the GUI component and source code.
  • Connecting Login Form In C# With Database For User Type AuthenticationAug 15, 2017. This article describes how to connect a Login Form designed in C# with a database so that the user gets validated based upon the password given by the administrator who has created the login database.
  • SharePoint 2016/2013 - How To Install SharePoint Client Components SDKAug 12, 2017. In this article, we will look for another necessary component that is required when preparing client machines for CSOM based PowerShell Development.
  • Key Capabilities Of Azure Cosmos DBAug 12, 2017. A few years ago, Microsoft offered DocumentDB as a Service (DaaS) that supported a limited set of features and functionalities. Today, most of the cloud-based services, such as Bing, Azure, and Office 365 are using DocumentDB. Microsoft took DocumentDB to the next level and came up with Azure Cosmos DB - A globally distributed, multi-model database.
  • 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.
  • Making The Switch As A Software DeveloperAug 09, 2017. After nearly seven years at my previous position, I've decided to finally make a change. When this post goes live, I'll officially be working for the engineering team at Bay Dynamics, a San Francisco-based Risk Management and Cyber Security firm. I'm extraordinarily excited to get to join the amazing team there and be a part of something much larger than anything I've worked within the past.
  • Shooting Game Using Construct 2Aug 08, 2017. Construct 2 is an HTML5 based 2D game editor developed by Scirra. Construct 2 is a powerful game creator specifically designed for 2D games.
  • Deploying An Ubuntu Server 16.04 LTS Virtual Machine Using Microsoft AzureAug 08, 2017. In computing, a Virtual Machine is an emulation of a computer system. Virtual machines are based on computer architectures and provide functionality of a physical computer. Their implementations may involve specialized hardware, software, or a combination. Azure Virtual Machine (VM) is one of several types of on-demand , scalable computing resources that Azure offers.
  • 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.
  • Learn Universal Windows Programming Via Modern C++Aug 06, 2017. Universal Windows programs have developed based on the Windows Runtime (WinRT) technology, Windows Runtime (hereafter called WinRT) and runs based on the COM API, but is not designed to be directly used, instead using a “language projections” concept
  • How To Setup Development Environment For CSOM Based Powershell DevelopmentAug 03, 2017. In this article, we will explore the steps that can be helpful in setting up the client machines for PowerShell development.
  • Pulling Base Container ImagesAug 03, 2017. So far, we have deployed our container in the Nano Server VM and Windows Server VM. The next piece of work is to pull down the Images for these containers. The Docker is the container which we have created so far. In the following lab, we will pull some image for that container form the Microsoft Container images repository.
  • 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.
  • How To Create Multi-Project Template Using Visual Studio 2017Jul 30, 2017. Visual Studio provides many inbuilt templates for creating a project. Project template will allow a developer to create new projects based on your exported project. The developer will be able to utilize your template for the new project dialog box. In this article, we can create a new project template for solution with multiple project as per your client or product requirement and use your project template for multiple developers.
  • 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.
  • Creating Web API With ASP.NET Core Using Visual Studio CodeJul 28, 2017. Web API is is framework that allows us to build web or http based endpoints. If you are building services today for mobile, HTML 5, and even client-server desktop applications, all these different types of applications need services in the backend.
  • 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.
  • Learn MVC : Using Angular PDF File ViewerJul 23, 2017. This article demonstrates the way of using Angular pdf file viewer in Visual Studio 2017. Angular portable document format (PDF) file viewer that is built with html5 & this viewer supported by Mozilla Labs. It is a web standards- based platform for parsing and rendering PDFs.
  • 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.
  • Getting Started With Microsoft QnA MakerJul 19, 2017. In this article, I’m teaching you about a simple question and answer bot based on the FAQ tool of Microsoft QnA Maker.
  • Create SSRS Drilldown ReportJul 17, 2017. Create SSRS drill down report, add link enable/disable based on specific condition, adding download links in reports.
  • Taking Script From Database In SQL Server In Different ModeJul 17, 2017. This article explains how to take the script from database in SQL server in a different mode. Normally we take back up our entire database as “.bak, .mdf, .ldf” file but sometimes we need to alter, update or delete then create our database based on our database modification.
  • 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.
  • Arithmetic Operation In ASP.NET MVCJul 16, 2017. In action result method I passed one string parameter named command and using this command I assigned some arithmetic operation string value and based on that the operation will be performed.
  • 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.
  • SharePoint 2016 - Forms Based Authentication - Part FourJul 11, 2017. In the previous article SharePoint 2016: Forms Based Authentication – Part 3 of this series on implementing FBA with SharePoint we saw the execution of Step 5 for the process.In this last article of this series we are going to see the execution of Steps 6 & 7 and for the sake of quick review I am putting up the process diagram again in here.
  • SharePoint 2016 - Forms Based Authentication - Part ThreeJul 11, 2017. In the previous article SharePoint 2016: Forms Based Authentication – Part 2 of this series on implementing FBA with SharePoint we saw the execution of Steps 3 & 4 for the process.In this article we are going to see the execution of Step 5 and for the sake of quick review I am putting up the process diagram again in here.
  • Learn ASP.NET Core Using Angular 2Jul 10, 2017. Asp.net is a new open source and cross-platform framework for building modern cloud-based application, such as web apps, IoT apps and mobile backends.it was architected to provide an optimized development framework for apps that are deployed to the cloud.
  • SharePoint 2016 - Forms Based Authentication - Part TwoJul 10, 2017. In the previous article SharePoint 2016: Forms Based Authentication of this series on implementing FBA with SharePoint we saw the execution of Steps 1 & 2 for the process. In this article we are going to see the execution of Steps 3 & 4 and for the sake of quick review I am putting up the process diagram again.
  • SharePoint 2016 - Forms Based Authentication - Part OneJul 10, 2017. In this article we will see all the steps involved in implementing FBA with SharePoint
  • Microsoft Azure Cloud Shell Startup And Creating A Linux VM WebServer Using Cloud ShellJul 06, 2017. Microsoft Azure Cloud Shell is very interactive, easy and browser accessible shell platform for creating, maintaining and managing all Azure resources using portal only. Azure Cloud Shell provides you access to Azure CLI browser based experience which supports built in tasks.
  • 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.
  • ASP.NET MVC 5 - JQuery Image Difference/Comparison PluginJul 02, 2017. This article is about interactive visual image comparison using JQuery based plugins. Modern web development focuses more and more on user interaction due to which there are tons of cool interactive plugins available to be integrated in any web platform. Twenty Twenty is one such plugin which provides interactive image comparison visualization. This JQuery based plugin can be utilized to showcase product comparison in a more interactive way.
  • Create Stop Watch Android ApplicationJun 30, 2017. Android is one of the most popular operating systems for mobile. So, I will show you how to create stop watch Android applications using Android studio. Android is the kernel based operating system. It allows the user to modify the GUI components and source code.
  • 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.
  • 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.
  • Writing Complex Queries Using LINQ And LambdaJun 22, 2017. I am writing this article based on request by some developers regarding how to write some complex queries using LINQ & Lambda expression which consist of joins / groupby / aggregate functions
  • Render SPFx Properties Pane Based On List DataJun 18, 2017. Let us see how to render the SharePoint Framework web part properties pane dynamically using SharePoint list data.
  • 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.
  • Creating Linux Based HdInsight Cluster In AzureJun 01, 2017. HdInsight cluster based on Linux in Azure.
  • Analysis Of REST-Based NetworkingMay 27, 2017. Analysis Of REST-Based Networking.
  • Filtering In UI-Grid With AngularJS And WebAPIMay 22, 2017. In this article, you will learn how to filter a UI-Grid data based on the columns and the given values.
  • 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.
  • 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.
  • SharePoint 2016/2013 Administration - How To Create Host Header Site CollectionsMay 04, 2017. In this article, we will look into the steps to create host header based Site Collections.
  • Two Class Support Vector MachineMay 03, 2017. An overview of Two Class Support Vector Machine.
  • Update And Delete Row From Multi-Table Base Select View With MVC 5.0Apr 28, 2017. This article familiarizes you with how to update and delete row from Multi-Table Base Select View with MVC 5.0.
  • Multi-Table Base Select View in MVC 5.0 With Database First Approach Apr 24, 2017. This article presents a use of Multi-Table Base select View in MVC5.0 with Database First Approach.
  • Create WCF Web Service In Visual Studio 2015Apr 18, 2017. In this article, you will learn how to create your first REST based XML Web Service in Visual Studio 2015.
  • Custom Collection Classes In C#Apr 06, 2017. This article presents an overview of custom collection classes in C#.
  • Building NodeJS Based REST API To Perform CRUD On MongoDBApr 04, 2017. Building Node.JS Based REST API To Perform CRUD On MongoDB.
  • Mutable And Immutable Class In C#Mar 29, 2017. In this article, we are going to learn about mutable and immutable class in C#.
  • Learn MVC Using Angular Role Based LoginMar 29, 2017. Learn MVC Using Angular Role Based Login.
  • Overview Of List Collection Class In C#Mar 28, 2017. Overview Of List Collection Class In C#.

About Base-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!