C# Corner

Resources  
  • JavaScript Powerful Property DescriptorsJan 21, 2018. We developers assume that an object’s property is only a container that can be assigned a name and a value. In actuality though, JavaScript gives us a series of powerful property descriptors that further shape how the property behaves. To demonstrate this, let's create a JavaScript object by using object literal.
  • Garbage Collector And Destructor In C#Jan 19, 2018. Garbage collector looks for an instance/object which is not required anymore and treats these objects/instances as ready to destroy. Then, it makes a call to the destructor to release the memory and deallocate the resources.
  • Custom Model Binding In ASP.NET Core 2.0Jan 17, 2018. In an earlier post I discussed how to prevent insecure object references by encrypting the internal references (e.g. table primary keys) using Data Protection API. To avoid duplication of code that encrypts/decrypts on every controller I used filters in that example. In this post I’ll use another complimentary technique: custom model binding.
  • Top 10 Programming Languages Of 2018Jan 15, 2018. Welcome to 2018; one more year geared towards a tremendous growth in the computing industry including software programming.
  • An Introduction To Q#Jan 15, 2018. In this article, I will be explaining about Q# - the new programming language introduced by Microsoft for quantum computing. We will understand the data type, expressions, and statements of Q# with the help of code snippets.
  • Bulletproof Disposable Types In .NET CoreJan 14, 2018. Whenever I do code review on .NET projects, hands down the number one issue is developers not calling .Dispose() on disposable objects. Ever since .NET was released, I have been preaching how important this is. If not done properly, it’s most likely to create virtual memory issues that will eventually cause the application to stop and possibly freeze server or users’ computer.
  • AI Series - Part Two - Programming EmotionsJan 12, 2018. I will be showing how to start AI Development with Cognitive Services. Previously, we kickstarted our new article series “AI HowTo” and talked about how to register for Emotion API Preview(Project Oxford) through Azure Portal.
  • Preventing Insecure Object References In ASP.NET Core 2.0Jan 10, 2018. How to prevent insecure direct object reference in ASP.NET Core.
  • Three Popular C# InterfacesJan 09, 2018. In this article, you will learn about the most common interfaces in the C# Libraries that you can use to create robust classes and objects.
  • An Introduction To Extreme ProgrammingJan 09, 2018. The advent of the Extreme programming dates back to the mid '90s when Chrysler Comprehensive Compensation (C3) program was initiated and Kent Beck was brought on to the project to improve the performance of the system.
  • Understanding Q# Programming LanguageJan 05, 2018. In this article I going to give basic information to understand the Q# Programming Language.
  • Using Collection In KotlinJan 02, 2018. Collections are used to store groups of related Objects in memory. Like java, kotlin also supports collection frameworks.
  • Intelligent Image Object Detection Bot Using Cognitive Computer Vision APIJan 02, 2018. Microsoft Cognitive services is set of cloud based intelligence APIs for building richer and smarter application development. Cognitive API will be used for searching meta data from Photos and video and emotions, sentiment analysis and authenticating speakers via voice verification.
  • Getting Started With React ProgrammingJan 01, 2018. React is a JavaScript library for building user interfaces. It was developed by Facebook to facilitate building with interactive, stateful and reusable UI components.
  • Getting Started With Q# Programming Jan 01, 2018. In this tutorial, you’ll learn how to build your first simple “Hello World” Q# app. Just follow these following steps.
  • How To Display Analog Clock Using BoxView In Xamarin.FormsDec 29, 2017. Although Xamarin.Forms doesn't have a vector graphics programming interface, it does have a BoxView. Although normally used for displaying rectangular blocks of color, BoxView can be sized, positioned, and rotated. This is enough to render a classic analog clock.
  • What And How Of Requirement Gathering - Part TwoDec 27, 2017. Prototyping allows gathering information by faking the production environment. In this technique, quite a lot of tools can be used to collect information, such as software programs to monitor/record mouse clicks or keystrokes, camera to monitor visual activity.
  • Understanding Data Structures - Linked ListsDec 26, 2017. In this article we will go through the basics of linked list data structure and implementation of it in various programming languages like C, C++, C#, Java, Python, VB.Net
  • Kendo UI TreeList Remote DataBinding With ASP.NET MVC 5 Using ASP.NET WEB APIDec 24, 2017. This article tells you how to construct the kendo TreeView with complex JSON object, which is the response of the REST API developed using ASP.NET Web API.
  • Fluent Validation With MVVM In Xamarin Forms ApplicationDec 22, 2017. Fluent Validation is used to create the validation logic separate from business logic for any type of objects you want to validate.
  • Validating User Input Using Regular Expression With C#Dec 22, 2017. In this article, you will learn how to validate user input using Regex class with C# Programming language
  • Some Useful JavaScript Methods, Variable And Objects In Sharepoint 2013Dec 21, 2017. In my previous blog, I explored _spPageContextInfo variable properties. This time, I am exploring some SharePoint-provided useful methods and objects in JavaScript.
  • Getting Started With Apache SparkDec 18, 2017. In Big Data, Hadoop components such as Hive (SQL construct) , Pig ( Scripting construct), and MapReduce (Java programming) are used to perform all the data transformations and aggregation . Now with Apache Spark the same is being achieved with many more advantages like unified API performance, and support for multiple languages, 10X-100X faster than MapReduce.
  • Swift Programming - Zero To Hero - Part TenDec 15, 2017. In this article, I have shared Enumeration concept in Swift Programming.
  • An Introduction To Quantum ComputingDec 13, 2017. In this article, I am going to cover some of the basics of Quantum computing and also set up an environment on our local machine with Visual Studio 2017 to get started with Quantum programming.
  • Swift Programming - Zero To Hero - Part NineDec 13, 2017. In this article, I have shared some details about Design Patterns in Swift Programming.
  • Swift Programming - Zero To Hero - Part EightDec 12, 2017. This is Part Eight of Swift Programming - Zero To Hero Series. In this article, we will learn about Return Type & Tuples in swift.
  • Using Lazy<T, TMetadata> In Dependency InjectionDec 11, 2017. Lazy&lt;T,TMetadata&gt; is a type provided by MEF to hold indirect references to exports. Here, in addition to the exported object itself, you also get export metadata, or information that describes the exported object.
  • Implement Symmetric And Asymmetric Cryptography Algorithms With C#Dec 09, 2017. How to encrypt and decrypt data using Symmetric and Asymmetric algorithms using C# Programming language
  • 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.
  • Object-Relational Mapper For SQLite3 In Node.jsDec 07, 2017. Node.js is getting more popular day by day and many frameworks and platforms are supporting Node.js for its high-performance web server development. In this post, you will learn the database development in Node.js with the popular ORM library; Sequelize.
  • Aspect Oriented Programming In C# Using DispatchProxyDec 06, 2017. Example of implementing logging using Aspect Oriented approach with DispatchProxy class.
  • Object Comparison In C# - Part Two [N Level Down List Comparison]Dec 02, 2017. This article will demonstrate the comparison of the objects (or list of objects) with n level down list comparison.
  • Comparing Objects In C#Nov 29, 2017. In this article, we are going to compare two objects of the same class having collection property or multiple collection properties.
  • Angular Components And ModulesNov 23, 2017. In programming terms, Modules can be described as the self-contained chunks of the functionality in your application which can run independently. In Angular, Modules are the collection of the components, services directives, and Pipes which are related such that they can be combined to form a module.
  • Xamarin.Android - Text Recognition By Mobile CameraNov 20, 2017. Mobile Vision is an API which helps us to find objects in photos and video, using real-time on-device vision technology.
  • Introducing Visual Studio Live ShareNov 18, 2017. With Visual Studio Live Share you and your teammates use the same debugging session. You can collaboratively step through code or set breakpoints which are reflected in your teammate’s editor in real time. Each of you can independently inspect objects, use features like tips on hover, locals and watches, or make changes to an object’s value. When you are ready to make a fix, simply edit the code and your teammates will see your edits in their editor.
  • Create App Using Xamarin.Android Using C# - Part FourNov 17, 2017. Xamarin.Android has native user interface controls. These controls can be easily added to Xamarin.Android apps using the Android Designer or programatically via XML layout files. Xamarin.Android exposes all of the user interface object properties and methods in C#.
  • Two Way Data Binding In Angular Without $scope Object Using MVCNov 16, 2017. Data binding is the most useful and powerful feature among any of the existing or upcoming software development technologies. It is actually a process that bridges a connection between the view and business logic of the application.Basically we will see one-way and two-way data binding with respect to AngularJS applications. But before we jump to that section we will try to learn something about the scopes in AngularJS.
  • 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&#39;s say we just need a bricks object to build a Home.
  • DROP IF EXISTS In SQL Server 2016Nov 13, 2017. With this very small but handy tip, we’ll check the enhancement that has been made to DROP statement in SQL Server 2016. Earlier, we used to write additional checking logic to make sure that the object exists to drop. If we miss writing the check and if the object is not available, then we are being served with an error message. With SQL Server 2016, now we can check the existence of the respective object without any error being generated.
  • Learn Universal Windows Programming Via Modern C++ (ProgressRing)Nov 13, 2017. This article explains how to implement the Progress Ring Control.
  • How To Lock Objects In Power BINov 11, 2017. Sometimes, there is a situation where when we open a report and click on any visuals, it accidentally nudges a chart a little bit to the right or left. Sometimes, by mistake when end user viewing a report, arrangement of visuals scatters little bit. Microsoft rolls out one new amazing feature to resolve this issue and that is Lock Objects in Power BI.
  • Enums In C#Nov 09, 2017. Suppose we are creating a program in which we have to use multiple named constants of similar type and on the basis of a particular constant we have to perform some operation. So what we normally do is initialize each named constant with a value. This may require a lot of effort if the number of constants is large. Also the look and feel of the code is not up to the mark. Have a look at the below program to understand more. The program contains months of the year. We have to put lots of effort to assign each month to a value.
  • Important C# Evolutions You May Not KnowNov 08, 2017. Since the announcement of the number one Microsoft language in 2000, many developers get interested in this language evolutions for many reasons but the main one was that C# is intended to be a simple, modern, general-purpose, object-oriented programming language.
  • Using Objects Comparer To Compare Complex Objects In C#Nov 07, 2017. Objects Comparer framework provides a mechanism to compare complex objects, and allows us to override comparison rules for specific properties and types.
  • Retrieve SharePoint Lookup Field Value Via C#Nov 07, 2017. Get and set a SharePoint Lookup Field via SSOM C#. In this article, I have explained how to get &amp; set SharePoint lookup field (single/multiple) values programmatically via Server Side Object Model in C#.
  • Debugging Tips - Part ThreeNov 06, 2017. While working on a complex code, we often come across situations where you need to debug lots of code to find/fix the issue(s). That also includes going through lots of methods (probably related or unrelated). .NetFramework provides a way to avoid unwanted &quot;Step in&quot; through the methods. Using DebuggerStepThrough (using System.Diagnostics) attribute, you can skip debugging of unwanted methods and reduce the debugging time to some extent.
  • 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 &quot;ref&quot; or &quot;out&quot; if you have a method that needs to return multiple new objects as part of its response.
  • Learn Universal Windows Programming Via Modern C++ (DispatcherTimer)Nov 01, 2017. DispatcherTimer is a timer control, that is integrated into the Dispatcher queue, Timer event is called in a specific timer interval, the main advantage DispatcherTimer, it can run the code on the same UI thread.
  • Learn Universal Windows Programming Via Modern C++ (ProgressBar)Nov 01, 2017. ProgressBar indicates that some operation is going on in the background.
  • Learn Universal Windows Programming Via Modern C++ (RelativePanel)Oct 31, 2017. Here, I have explained how to implement RelativePanel control in C++/WinRT.
  • Getting Started With Azure Cosmos DBOct 29, 2017. Azure Cosmos DB is a globally distributed database service designed to enable you to elastically and independently scale throughput and storage across any number of geographical regions with a comprehensive SLA. You can develop document, key/value, or graph databases with Cosmos DB using a series of popular APIs and programming models.
  • 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.
  • Event Capturing And Bubbling In JavaScriptOct 25, 2017. The DOM has two approaches for object to sense events: first is top down approach and second is bottom up approach. Top down approach is called event capture whereas bottom up is known as event bubbling.
  • Simple Single Side Traffic Controller Using Timer ControlOct 25, 2017. This is a simple article for beginners who are getting introduced to C# programming in which they will learn how to code using Timer control inside Windows form
  • 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.
  • Learn Universal Windows Programming Via Modern C++ (Grid Control)Oct 23, 2017. This article explains about Grid control in Modern C++/WinRT. Grid control is used to arrange the controls in multirow and multicolumn layouts (stackpanel is use arrange controls in horizontal or vertical).
  • Learn Universal Windows Programming Via Modern C++ (ContentDialog)Oct 22, 2017. This article explains about Content dialog in C++/WinRT. It forces the user to get the input (whether success or failure) until the user cannot interact with Parent windows.
  • Learn Universal Windows Programming Via Modern C++ (AutoSuggestBox Control)Oct 19, 2017. In this article we&#39;ll learn how to implement AutoSuggestBox and some of the important events and properties.
  • Swift Programming - Zero To Hero - Part SevenOct 19, 2017. This is Part Seven of the &quot;Zero to Hero&quot; Series. In this article we will learn about Functions and Tuples.
  • User-Defined Types In SQL ServerOct 13, 2017. When we are working with any programming language, we create user defined types as per our requirement. It is a better idea to have this feature in the SQL server.
  • Understanding Computer Vision API In AzureOct 11, 2017. The Computer Vision API gives you the tools to understand the contents of any image. Create tags identifying objects, beings, or actions present in the image, and then craft coherent sentences to describe it.
  • Learn Universal Windows Programming Via Modern C++ (CommandBar Control)Oct 11, 2017. In this article, we are going to learn about CommandBar control in Modern C++. The CommandBar control is a new control in Universal windows programming, it’s a like a Toolbar control, it has more features compared to Toolbar control.
  • Learn Universal Windows Programming Via Modern C++ (SplitView Control)Oct 11, 2017. In this article, we are going to learn about Splitview control in Modern C++.
  • 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.
  • Swift Programming - Zero To Hero - Part SixOct 05, 2017. This is part six of &quot;Swift Programming - Zero to Hero&quot; series. In this article, we will be learning about Arithmetic Operators. Before you continue in this session, please follow the previous series.
  • .NET Entity Framework Core Generic Async Operations With Unit Of Work Generic RepositoryOct 05, 2017. The advantage of generic repository is that you can inherit from it, pass an entity type, and you will get CRUD operations. It will save you a lot of coding time when your domain objects are likely to grow over 50+. Another advantage is change history functionality; you can inherit your entities from the change history interface.
  • Introduction To Machine Learning In AzureOct 04, 2017. In this article, we will see what machine learning is and how it differs from traditional programming.
  • ColorPicker Control In UWP (Windows 10 Fall Creators Update Features)Oct 04, 2017. This article explains how to implement ColorPicker control in UWP application. A ColorPicker control is a new control in UWP programming
  • Swift Programming - Zero To Hero - Part FiveOct 03, 2017. This is part five of &quot;Swift Programming - Zero to Hero&quot; series. You can read the previous articles in the series.
  • Migrate SharePoint On-Premises Content To SharePoint Online Using SPO APIOct 02, 2017. Below is the step by step SharePoint Online PowerShell cmdlets to migrate the content. It requires minimal CSOM (Client object model) call to avoid the threshold. It leverages a temporary Azure Blob Storage container to hold the content and Azure Queue, which schedule parallel jobs.
  • Software Design Principles DRY, KISS, YAGNISep 29, 2017. In this article, I am going to explore software design principles and their benefits and why design principle are useful for us and how to implement them in our daily programming. We will see DRY, KISS, and YAGNI software design principles.
  • 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.
  • Never Let That Kid DieSep 21, 2017. It&#39;s my birthday and the last day of 5-day TOGAF program. The overall program was pretty interesting as there was no technology involved and five participants included, a senior executive from WHO and people having profiles and serious image. And yes, it was their misfortune to have me as one of the participants.
  • Getting Started With Android And KotlinSep 21, 2017. It is a new programming language for modern multiplatform applications. It was developed by JetBrains and open source contributors .First appeared on 2011 and latest version of Kotlin is 1.1.4 which was released on August 15, 2017 .
  • Learn Universal Windows Programming Via Modern C++ (Check Box)Sep 19, 2017. In the button control, we are using the IInspectable to set the content of the text. How do we get the value from the IInspectable interface ? By IPropertyValue; using the “as” operator, we can convert from IInspectable to IPropertyValue.
  • Learn Universal Windows Programming Via Modern C++(Border Control)Sep 18, 2017. In this article, we are going to learn about Border control in Modern C++
  • Learn Universal Windows Programming Via Modern C++ (Combo box)Sep 18, 2017. Combobox control is contains the collection of the items. It represents Drop-down list of the items. The user can select the items from the list, when the combobox is open its display all the items, once item has been selected dropdown list will close automatically.
  • Start The App In Windows Startup In UWP (Windows 10 Fall Creators Update Features)Sep 17, 2017. A long-awaited feature (other features are LaunchApp, Restart App) has come to Universal Windows Programming i.e. we can run our application on Windows startup (User log in to the system), Previously we had done some workaround to run the app in windows startup, now it&#39;s time to say good bye to the workaround.
  • Learn Universal Windows Programming Via Modern C++ (RadioButton)Sep 14, 2017. RadioButton is used to allow to the user select single items, whereas checkbox allows users to multiselect.
  • 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.
  • Seven Reasons Why Swift Is A Must For iOS App DevelopmentSep 13, 2017. With the launch of several programming languages, a developer is often confused as to which technology to use. They are have the dilemma of choosing between Objective C and Swift, both of which are considered to be fine technologies for IOS app development. Recently in an event, Apple unveiled Swift as its new programming language and thereby created a new demand for Swift developers required for quality IOS development.
  • Kickstart Azure Database For PostgreSQLSep 10, 2017. This blog post will walk you through creating an Azure Database for PostgreSQL in Azure Portal. PostgreSQL is a powerful, open source object-relational database system and has capability to handle workloads ranging from small single-machine applications to large Internet-facing applications with many concurrent users. Azure Database for PostgreSQL is a managed service which enables you to run, manage, and scale PostgreSQL databases in the cloud.
  • Data Science Machine Learning In R ProgrammingSep 09, 2017. In this article, I am going to describe what machine learning and data science are and then we will see how we can apply machine learning techniques in data science and then we will do some practical implementations in R language of data pre-processing.
  • Aspect Oriented Programming In C# With RealProxy classSep 07, 2017. Example of implementing logging using RealProxy class.
  • Find Out Creation And Modification Date Of Database Objects Like Tables And Stored ProceduresSep 07, 2017. Database Object refers to Table, Stored procedure, View, Function etc.; in other words, all the elements that are created for data storage and manipulation.
  • Restart An App Programmatically In UWP (Windows 10 Fall Creators Update Features)Sep 06, 2017. This article explains about how to restart an app programmatically in Universal Windows Programming.
  • 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&#39;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.
  • Swift Programming - Zero To Hero - Part FourSep 06, 2017. In this article, we will learn about arrays and accessing arrays using looping statements
  • 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.
  • How To Perform Web Scraping Using Python ProgramSep 04, 2017. Web Scraping (also known as Screen Scraping, Web Data Extraction, Web Harvesting etc.) is a process to scrap (extract) data from web pages, web document, HTML document or XML document in a structured manner and then store in database, text file as a spreadsheet , as a XML , or in whatever file format we want to save in.
  • Getting Started With MongoDBAug 29, 2017. MongoDB is an open-source/cross platform (Windows, Linux, etc) document database that is NoSql in JSON format database. A NoSQL database means it does not have any relationships (non-relational database). It is a document-oriented database.
  • Dependency Injection - Part Five - Using A DI Container (Autofac)Aug 29, 2017. A DI container takes the responsibility of instantiating and providing the dependency instances, irrespective of the level of dependencies. As a result, it is a container that manages the scope of the instantiated objects.
  • Working With JSON In SQL Server 2016Aug 28, 2017. JSON (JavaScript Object Notation) is a lightweight data interchange format. It is language independent, easy to understand and self-describing. It is used as an alternative to XML. JSON is a very popular data interchange format nowadays. Most modern services return the data into the JSON text.
  • 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.
  • REST CRUD (Insert,Update,Delete,Get) Operations Using SharePoint Hosted App - Office 365 - Part OneAug 22, 2017. SharePoint adds the ability for you to remotely interact with SharePoint sites by using REST. Now, you can interact directly with SharePoint objects by using any technology that supports standard REST capabilities.
  • 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.

About Object-Oriented-Programming

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!