C# Corner

Resources  
  • Code Reusability In KotlinDec 12, 2017. In this article, I am explaining how you can reuse your existing code of Kotlin using Inheritance with examples and diagram.
  • Socket.io Programming With Example In Node.jsDec 08, 2017. Hello every one today I will explain about socket.io in Node JS
  • Understanding Classes In KotlinDec 07, 2017. In the above example, I have created a nested class ‘Nestedclass’ which has a data member ‘b’ and a member method show(),now the object of nested class can access member of nested class only.
  • Aspect Oriented Programming In C# Using DispatchProxyDec 06, 2017. Example of implementing logging using Aspect Oriented approach with DispatchProxy class.
  • Client Side Routing Using Angular In MVCNov 29, 2017. AngularJS supports a Single page application routing module called ngRoute. When a user requests a specific url, the routing engine fetches that url and renders the view based on the defined routing rules. AngularJS appends '/#/' to the url to redirect to a particular url using $location service. For example, to redirect to '/Article', the url would be http://localhost/#/Article.
  • Difference Between MySQL DATETIME And TIMESTAMP DataTypesNov 29, 2017. A simple question that may come to one's mind while working with MySQL is "Whether to assign DATETIME or TIMESTAMP datatype for a column as both seem to store the same data?”. Even though they store the same data, they differ in some ways and let's check those things out with the help of a small example.
  • Getting Started With Kotlin - BasicsNov 29, 2017. Google announced Kotlin as an official language for Android Application development in Google I/O 2017.Kotlin is a statically-typed language, developed by JetBrains and Open source Contributors in the 2011, that runs on JVM(Java Virtual Machine) and is compiled to JavaScript source code. It is very suitable for server-side application development with full compatibility of Java frameworks. You can use multiple frameworks like - Spring, Vert.x, Ktor etc. for web application development.
  • Custom Vision Service REST API Using Web Interface To Upload Image And TrainNov 28, 2017. Custom Vision Service using Visual intelligence made easy to just bring a few example of labeled images and let Custom Vision do the hard work.
  • Pug Vs HTMLNov 26, 2017. In the holy wars of "Pug vs HTML", it is really confusing sometimes to realize which one of these to use. The same is true for SQL vs NoSQL, and the similar is true for Java vs Python. Then people think why not talk about Pug vs HTML as well. HTML is always the perfect language to consider, however for the case of Pug there might be a bit of confusion. Some developers don't know Pug, and some who know it, know it as a Jade framework.
  • Creating My First ChatBot Using Angular(5.0) And Dialogflow (API.AI)Nov 20, 2017. Anyone who have ever tried to contact company through customer care center they know how slow and frustrating process it is. You remember that audio tape “press 1 for this, press 2 for this ,press * to go back to menu and blaa blaa blaa….“ say for example if you want to activate a simple caller tune to your phone number then you have to spent at least 10 min to know the code to activate that caller tune by hearing that audio tape and pressing so many number and finally if you had a good luck then only you able to activate you caller tune.
  • How To Schedule Timer-Based Callbacks With ExampleNov 16, 2017. In this article, we will look at how the JavaScript timer functions - settimeout, setinterval, and Cleartimeout -- are used to schedule and cancel timer-based Callbacks, with a simple example of stopwatch program.
  • Dependency Injection In AngularNov 14, 2017. Let us assume, if we want to build a Home. To build a Home we need several objects like bricks, wood, concrete, iron etc. To keep this example simple let's say we just need a bricks object to build a Home.
  • Angular Pipes With ExamplesOct 29, 2017. The first parameter 'USD' is currency type which can be of INR, USD or any currency type in the world. The Second parameter 'true' is a Boolean indicating whether to display currency symbol or not .By default it is false and, if we change it to true then the symbol will be displayed.
  • One-Way And Two-Way Data Binding With Examples In AngularOct 27, 2017. In Angular 2, Data Binding is mainly classified in two ways, namely One-Way binding (i.e. unidirectional binding) and two-way binding (i.e. bi-directional binding).
  • How To Read CSV File In ASP.NET With Example C# and VB.NETOct 26, 2017. In this articleI'll explain a way to upload, read/browse and show CSV file (Text File) information in ASP.Net GridView using C# and VB.Net.
  • Angular Directives With ExamplesOct 24, 2017. Directives play an important role in Angular 2 project, when we display the templates or html pages in our project. By using this we can easily manipulate our Dom layout.
  • Angular 2+ Logger Using ng2.loggerOct 23, 2017. In this article I am going to show you the process to log messages in Angular 2+ applications with examples. Ng2 Logger is a simple logging module for Angular 2+ applications. This allows you to log messages based on the log level setup.
  • 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 SharePoint Framework For SharePoint 2016 On-PremisesOct 12, 2017. Once you have installed and upgraded the September 2017 Public Update for SharePoint 2016, you will be able to upload and deploy SharePoint Framework packages that contain web parts via the SharePoint App Catalog just as you would with SharePoint Add-ins.
  • 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)
  • ASP.NET Core 2.0 File ProvidersOct 11, 2017. ASP.NET Core provides an encapsulation of System.IO.File type in order to limit the access to file systems via PhysicalFileProvider type, which is an implementation of IFileProvider.
  • 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.
  • 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.
  • Getting Started With ASP.NET Core And jQuery CRUD Using WEB APIOct 03, 2017. A lab exercise for you to demonstrate what have you learned from this training material to create your own Todo CRUD operation using TodoRepository included in this training material.
  • 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.
  • 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).
  • 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.
  • 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 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.
  • 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.
  • Aspect Oriented Programming In C# With RealProxy classSep 07, 2017. Example of implementing logging using RealProxy class.
  • Create Local Notification In Xamarin.Forms Using Visual StudioSep 04, 2017. Xamarin is the best cross platform tool to develop mobile applications. It provides cross platform app development in C#, so we don’t need to write java or Objective C. We can just use C# and leverage the same for all the platforms. Xamarin also helps us by providing the designers with the different platforms like Android,IOS,etc.
  • Create Timer Task Application In Xamarin.Forms Using Visual StudioSep 04, 2017. Xamarin is the best cross platform tool to develop mobile applications. It provides cross platform app development in C#, so we don’t need to write java or Objective C. We can just use C# and leverage the same for all the platforms. Xamarin also helps us by providing the designers with the different platforms like Android,IOS,etc.
  • Create StopWatch Application In Xamarin.Forms Using Visual StudioSep 04, 2017. Xamarin is the best cross platform tool to develop mobile applications. It provides cross platform app development in C#, so we don’t need to write java or Objective C. We can just use C# and leverage the same for all the platforms. Xamarin also helps us by providing the designers with the different platforms like Android,IOS,etc.
  • 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.
  • 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.
  • Learn About Properties In JavaScriptAug 28, 2017. JavaScript is an object oriented programming language and encapsulation is a pillar of object oriented programming language. Properties help us to encapsulate. Properties help us to control what is assigned and return to and from the public field.
  • Create ToolBar Menu Items In Xamarin.Forms Using Visual StudioAug 24, 2017. Xamarin is the best cross platform tool to develop mobile applications. It provides cross platform app development in C#, so we don’t need to write java or Objective C. We can just use C# and leverage the same for all the platforms. Xamarin also helps us by providing designers with different platforms like Android, IOS, etc.
  • Create Office Web Add-In Project Using Visual StudioAug 24, 2017. In this article, I would like to share the steps to create Office web add-in projects using Visual Studio. In this article, we have explored what Office add-ins are and how to create Office web add-in projects using Visual Studio 2015.
  • Data Structures In Java - Linear ArrayAug 10, 2017. Data structure means organizing the data by using models in the computer memory. A linear data structure that represents a relationship between elements by successive memory location is known as the array, where as a linear data structure that represents a relationship between elements by pointer and link is known as linked list.
  • 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.
  • 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.
  • 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.
  • Execution Of Test Cases In Sequential And Parallel Using Selenium WebdriverJul 18, 2017. Selenium is an open source tool, which is used to execute the test scripts or the test cases on web applications. As we know Selenium is an open source tool, which supports various programming languages such as Java,C#, PHP,JavaScript, Ruby etc. Selenium supports various operating systems to execute the test scripts on web applications like Windows, Linux, MacOS etc. Selenium is written using one of the famous programming languages; i.e. Java, and its a cross-platform.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • How To Make A Chat Application Using Sockets In JavaApr 17, 2017. In this article, you will learn how to make a chat Application , using Sockets in Java.
  • Example For *Ngif Condition In Angular 4Mar 28, 2017. Example For *Ngif Condition In Angular 4.
  • 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.
  • Steps To Debug/ Run Selenium Test Cases From Eclipse IDMar 01, 2017. In this article, you will learn the steps to debug/ run Selenium test cases from Eclipse ID.
  • Getting Started With O365 - SharePoint-Hosted Add-Ins Using JSOMFeb 28, 2017. In this article, you will learn about SharePoint-hosted add-ins, using JSOM.
  • Install Java Application Server In Azure Virtual MachineFeb 25, 2017. In this article, you will learn how to install the Apache Tomcat Server in Azure virtual machines.
  • How To Create A Java Web App In Azure MarketPlaceFeb 23, 2017. This article explains how to use Azure marketplace to create a Java Web app.
  • Deleting SharePoint-Hosted Add-In Using Napa Office 365 Development ToolFeb 23, 2017. In this article, you will learn how to delete SharePoint-Hosted Add-ins using Napa Office 365 Development Tool.
  • SharePoint-Hosted Add-In By Using NAPA Tools And Delete SharePoint Task List Item Using JSOMFeb 22, 2017. In this article, you will learn about SharePoint-hosted add-ins by using NAPA Tools and Delete SharePoint Task List item using JSOM.
  • 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.
  • 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.
  • Creating Java Integrated Development Environment (IDE) In C#Jan 28, 2017. In this article, we will create a simple, well-featured Java Integrated Development Environment (IDE) using C# for beginners.
  • 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.
  • 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.
  • Difference Between Spring Transaction Propagation Attributes In Java DevelopmentDec 06, 2016. In this article, you will learn about the difference between Spring Transaction Propagation attributes in Java Development.
  • Practical Approach To ASP.NET Web Services - Part Six - Calling ASP.NET Web Service From Java Script Using AJAX Dec 06, 2016. In this article, you will see how to call a Web Service from JavaScript using ASP.NET AJAX.
  • 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.
  • 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.
  • An Overview Of Polymorphism, Inheritance And Encapsulation In OOPNov 17, 2016. In this article, you will learn an overview of polymorphism, inheritance and encapsulation in OOP.
  • Handling Permissions In Linux VM While Migrating WordPress SiteOct 27, 2016. In this article, I'll write about how to give WordPress plug-ins permission, while migrating or maintaining the backup of your site.
  • Node.JS Vs. Java For Enterprise App Development - Basic ModulesOct 04, 2016. There are many factors to consider when choosing a platform for your enterprise applications. Here is detailed info about why developers would choose Node.JS over Java for enterprise app development.
  • Working In NetBeans IDE (Integrated Development Environment)Sep 27, 2016. In this article, you will learn about NetBeans IDE (Integrated Development Environment).
  • Implementing Delete Method In ASP.NET Web APISep 26, 2016. In this article, we will see how to implement the Delete Method with an example.
  • Creating SharePoint Hosted Add-ins In SharePoint Server 2016Sep 25, 2016. In this article, you will learn how to create SharePoint Hosted Add-ins in SharePoint Server 2016.
  • AngularJS UI-Router Nested ViewsSep 20, 2016. In this article, you will learn about UI-Router Nested Views with an example and how to implement that in AngularJS.
  • Configure Environment For Add-Ins In SharePoint 2016Sep 16, 2016. In this article, you will learn how to configure environment for add-ins in SharePoint 2016.
  • Factory Design Pattern Real World ExampleSep 13, 2016. In this article, you will see the real world example of Factory Design Pattern.
  • Java Struts2 And Hibernate4 CRUD With MySQL With Pagination, Sorting And Export Option Using NetbeansSep 11, 2016. In this article, you will learn about Java Struts2 and Hibernate4 CRUD with MySQL with pagination, sort and export option, using Netbeans.
  • AJAX Control Toolkit Tutorial: Calendar Extender - Part TwelveSep 08, 2016. In this article, we will learn about the Ajax control toolkit Calendar Extender, with examples.
  • Primefaces5, Spring4, Hibernate4, CRUD Using Netbeans 8.02 And MySQL5 Database ServerSep 02, 2016. In this article, you will learn about Primefaces5, Spring4, Hibernate4, CRUD using Netbeans 8.02 and MySQL5 Database Server.
  • Top 10 Most Popular Articles Of JavaAug 30, 2016. We have compiled a list of top 10 most popular Java articles.

About Encapsulation-Example-in-java

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!