C# Corner

Resources  
  • C# 7.0 And C# 7.1 New Features - Part TwoOct 16, 2017. This article explains the new features of C# 7.0 & C#7.1. It covers new features like Discards, Pattern Matching, Generalized async return types, Async Main (Main Method returning Task), Infer Tuple Element Names, Default Literal Expressions & Type Inference and Pattern Matching with Generics.
  • Power BI - Get Data From SharePoint List / LibraryOct 16, 2017. In this article, we will explore two methods to get data from SharePoint List / Library in Power BI.
  • 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.
  • 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.
  • How To Use Fiddler With ASP.NET Web API TestingOct 11, 2017. If you are developer, tester or a manager, sometimes understanding the various methods of API can be a challenge when building and consuming the 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.
  • How To Use Postman With ASP.NET Core Web API TestingOct 04, 2017. If you are developer, tester, or a manager, sometimes understanding the various methods of API can be a challenge when building and consuming the application.
  • 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.
  • How To Use Swagger With ASP.NET Core Web APIsSep 24, 2017. If you are developer, tester or a manager, sometimes understanding the various methods of API can be a challenge when building and consuming the application.
  • 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.
  • Create Immutable Type In C#Sep 14, 2017. A public constructor that accepts initialization data is required so that the client can pass-in minimum state for the type to be valid. Private constructor, on the other hand, is used by methods to construct a new object and set its entire state.
  • 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.
  • Aspect Oriented Programming In C# With RealProxy classSep 07, 2017. Example of implementing logging using RealProxy class.
  • How Should We Store Images And Blob Files In SQL ServerSep 06, 2017. There is always a requirement from developers: How should I store images and BLOB files in SQL Server ? In this post let's explore the data types and methods used for storing Binary Large Objects also know as BLOBs, such as images and sounds, into SQL Server.
  • Getting Started With Bing Speech API In WPF ApplicationsSep 06, 2017. Cognitive services are a set of APIs that are designed to democratize artificial intelligence by enabling systems to see, hear, speak, understand and interpret our needs using natural methods of communication.
  • ASP.NET Core 2.0 MiddlewareSep 06, 2017. Create a Hello World app using ASP.NET Core Middleware. Middleware components are called in the order they appear in Configure() method; i.e., the order in which they're added to the pipeline. The response, on its way back to the client, also passes through the same middleware pipeline.
  • 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.
  • Getting Started With Voice Of The CustomerAug 29, 2017. In any industry customer satisfaction plays a very important role. It provides a real picture about our happy and unhappy customers which helps us to manage and plan our business effectively. We can get a customer satisfaction matrix using different methods and one of them is to use customer satisfaction surveys.
  • Creating Login Form For Users With Image Uploading For Password RecallAug 27, 2017. The article is an alternate method of creating a login form where the conventional way of giving a password hint will be given as a question. In this, you can add an image which can be your hint if you forget your password.
  • Custom Extension Method In C#Aug 23, 2017. Here, I am going to explain how to create and use the extension method.
  • Swift Programming - Zero To Hero - Part ThreeAug 17, 2017. Statements are the building blocks of any program. We can perform any function with the help of statements, such as checking values or declaring variables, calling methods, or even creating objects.
  • Custom Model Binding In ASP.NET Core MVCAug 17, 2017. Model binding in MVC maps HTTP request data to the parameters of the controller's action method. The parameter may either be of simple type like integers, strings, double etc. or complex types. MVC binds the request data to the action parameter by parameter name.
  • 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.
  • Overview Of Filters In MVC - Part TwoAug 10, 2017. In ASP.NET MVC, a user request is routed to the appropriate Controller and Action Method. We need situations where we want to execute some logic before or after an action method executes. ASP.NET MVC provides Filters for this.
  • 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.
  • Introduction To jQuery And Web API 2 Controller’s Method Relationship Using jQuery AJAX In ASP.NET MVC RazorAug 06, 2017. ASP.NET Web API is a smart framework to build HTTP services which can be consumed by Multi platform clients including desktops or smart phone devices, irrespective of browsers or Operating Systems being used.
  • Overview Of Filters In MVCAug 06, 2017. In ASP.NET MVC, a user request is routed to the appropriate controller and action method. We need situations where you want to execute some logic before or after an action method executes. ASP.NET MVC provides filters for this.
  • Building Your Own Container ImagesAug 04, 2017. Here, we will be building our own container images. For doing this we have two different ways, namely manual method and automated method. Let us see both ways.
  • 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.
  • Null Object Design PatternJul 29, 2017. A null object is also known as a Stub, an Active Nothing or an Active Null. It helps our program logic to get rid of null checks where ever possible. We all know, that we can not call methods on a null reference as it results in a NullReferenceException. The null object pattern provides a non-functional object in place of a null reference and therefore allows methods to be called on it.
  • 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.
  • Way Of Adding Angular In Visual Studio 2017 With a Simple MethodJul 24, 2017. This article explains how to add Angular in a simple way. We can add AngularJS in a different way to develop an application in Visual Studio but this article explains how to add angularJS in Visual Studio 2017 using a simple method.
  • 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.
  • Working With Filters In ASP.NET Core MVCJul 18, 2017. Filters allow us to run custom code before or after executing the action method. It provides ways to do common repetitive tasks on our action method. The filters are invoked in certain stages in the request processing pipeline.
  • Ability To Develop HTTP Methods Or Verbs (GET, POST, PUT, DELETE etc)Jul 17, 2017. Before going to explain the significant verbs or methods (GET, POST, PUT, DELETE, HEAD, OPTIONS, TRACE and CONNECT) for the communication among different clients and servers, first of all we should understand what HTTP methods are and how they are useful in real time.
  • 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.
  • Introduction To SharePoint Event ReceiversJul 12, 2017. Event Receiver is a important feature in SharePoint . The use of Event Receiver is to handle the events. It is like a method that is triggered when an action occurs on a specified SharePoint object.
  • AddMvc And AddMvcCore Method In ASP.NET Core MVCJul 07, 2017. In this article, you will learn the differences between AddMVC() method and AddMvcCore() in ASP.NETcore MVC. ASP.NET Core is a modular complete rewrite of .NET cross platform framework.
  • Update Entity Form JS Library Without Removing Event Handlers - Quick WorkaroundJul 06, 2017. Let’s say we have one entity with a good amount of custom fields and we have developed a web resource for the main form. Many of the fields have onchange event associated with them. Now we have a new requirement where we need to implement a similar kind of form with some new functionality for different types of users and some of the existing methods also need to be modified. The requirement is to replace new form JS library with updated new JS library but without removing dependent handlers (as we are using many onchange event handlers as it is) with minimum effort.
  • 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.
  • Working With Objects In Windows PowerShellJun 27, 2017. Everything in PowerShell is an Object. An Object is a programmatic representation of anything. Each object has properties and methods.
  • 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.
  • Extension Method In C#May 23, 2017. Extension Method In C#.
  • Data Structures And Algorithms - Part Two - A Word About Big-O NotationMay 22, 2017. This article is an introduction to Big-O Notation, which is used to measure the running time of a function/ method.
  • Azure Traffic Manager - Part OneMay 16, 2017. In the following article we will see how to create and add endpoints to Azure Traffic Manager profile with a geographical routing method
  • 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.
  • Publishing A Website To Azure, The FTP MethodMay 07, 2017. In the article given below, we will see how to publish a Website via FTP.
  • Publishing A Website To Azure, The Visual Studio MethodMay 06, 2017. The article given below will give you a demo on how to deploy a Website on Azure, using Visual Studio.
  • 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.
  • Software Testing!! BDD, AAA-Structure And Mocking For Unit TestingApr 16, 2017. In this article, you will learn about naming conventions, body structure and object mocking of the test method for unit testing.
  • SQL Server - ServicesApr 10, 2017. MS SQL Server provides services which are mandatory for database creation and maintenance. This article shows how to start and stop Services, using different types of methods.
  • Custom Collection Classes In C#Apr 06, 2017. This article presents an overview of custom collection classes in C#.
  • Making Method Parameters Optional In C#Apr 06, 2017. In this article, you will learn about how to make method parameters optional in C#.
  • Factory Method Design Pattern In C#Mar 31, 2017. Factory Method Design Pattern 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#.
  • Overview Of List Collection Class In C#Mar 28, 2017. Overview Of List Collection Class In C#.
  • JavaScript Interview Day # 1 - How To Create A ClassMar 28, 2017. JavaScript interview tips - How to create a Class.
  • AngularJS 2.0 From The Beginning - Http Module Part Two - Day EighteenMar 23, 2017. In this article, we will discuss about the http module post method.
  • Anonymous Methods And Lambda Expressions In C#Mar 22, 2017. In this article, you will learn about anonymous methods and lambda expressions in C#.NET.
  • To Execute the Workflow Instance through Power-Shell ScriptMar 20, 2017.
  • 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#.
  • Creating Google Maps AutoComplete DropDown With Multiple Map PointersMar 03, 2017. Using this method, you can implement complete Google Maps implementation.This code is written in AngularJS and MVC , but you can use in pure JavaScript also.
  • Calling Method InformationFeb 27, 2017. In this article, you will learn about calling method Information.
  • How To Create Animation Using ViewAnimator In Xamarin With Visual Studio 2015Feb 25, 2017. In this article, we will learn how to create an animation using ViewAnimator, about the methods of ViewAnimator, and how set an animation effect, using ViewAnimator in Xamarin with Visual Studio 2015.
  • Coding Challenge - Lesson LearnedFeb 22, 2017. Here, I am sharing some note from the coding challenge: NumberStyles, Tuple, Generic Extension Method, Group string from right to left.
  • 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.
  • Creating An Internal Load Balancer In Microsoft AzureFeb 12, 2017. In the following article, I have explained the method of creating a load balancer in between two different VMs.
  • Custom Action Methods In ASP.NET Web APIFeb 10, 2017. In this article, you will learn about Custom Action Methods in ASP.NET Web API.
  • Understanding Startup Class In ASP.NET CoreFeb 10, 2017. In this article you will learn about Startup Class in ASP.NET Core.
  • Bind GridView Using jQuery Load In ASP.NET With No Page ReloadFeb 06, 2017. This tutorial explains how to bind GridView with no page reloading, using jQuery Load method.
  • Partial Methods In C#Feb 05, 2017. In this article, you will learn about Partial Methods in C#.
  • Creating Backup And Recovery Vault In AzureFeb 03, 2017. Here, I have explained the concept of creating an Azure backup and recovery vault and the methods of connecting a virtual machine to the vault for backup purposes.
  • 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.
  • Calling A C# Function With jQuery AJAX In ASP.NET MVCJan 31, 2017. This article explains how to use jQuery AJAX method in ASP.NET MVC.
  • Creating IoT Hub In Microsoft AzureJan 31, 2017. The following article teaches you about IoT hub and all its uses. I have also explained the methods to configure IoT Hub.
  • Delegates, Anonymous Method, And Lambda Expression In C#Jan 25, 2017. This article discusses Delegates, Anonymous Methods, and Lambda Expression in C#.
  • 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.
  • Publishing Applications On Windows StoreJan 09, 2017. This article helps you learning the method of uploading your application package on the Windows Store.
  • Voice Login System Using Microsoft Visual StudioJan 07, 2017. In this article, I will explain the method of creating a login system, which works with the help of voice inputs. You can make use of this in the Automation programs for security purposes.
  • 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.

About Method-Of-LineNumberReader-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!