C# Corner

Resources  
  • Dynamic Objects And Alternatives To ReflectionApr 08, 2018. The CodexMicroORM open source project on GitHub includes several features to help you create fast, concise .NET deliverables. One such feature is implemented in the Performance.cs file and enables dynamic (i.e. run-time) access to properties of any object – faster than what you’d get out of System.Reflection.Type. CodexMicroORM leverages this feature in several places, one being the ability to build composite objects: your existing “POCO” (plain-old C# objects), with additional optional extended properties.
  • DatePicker Placeholder And Border Style Using CustomRendererApr 05, 2018. In Xamarin.Forms, there is no Placeholder, BorderRadius, BorderColor, or BorderWidth for DatePicker Control. So in this article, we can learn how to set those properties for DatePicker using CustomRenderer.
  • Indexing In-Memory Collections For Blazing Fast AccessApr 01, 2018. The CodexMicroORM open source project on GitHub hosts a few useful .NET goodies that can help you write concise code with great performance. In this article I’ll cover a collection type that supports multi-property indexing and as such, performs very well with equality lookups.
  • C# Object To JSON Parser (JSON Serializer)Mar 30, 2018. This article demonstrate how to parse a C# object into JSON string without using any .Net serializer and third party libraries.
  • URL Module In Node.jsMar 23, 2018. URL Module in node.js provides functionality for URL utilities and parsing for the same. By using these many properties you can perform plenty of operations with you nodejs application specific to URL.
  • Android Kotlin - Strings And Ranges - Part ThreeMar 20, 2018. In this article, we are going to learn about Strings and Ranges in Kotlin with string methods.
  • Use INotifyPropertyChanged Interface In WPF MVVMMar 20, 2018. INotifyPropertyChanged is an interface member in System.ComponentModel Namespace. This interface is used to notify the Control that property value has changed.
  • Getting User Properties From Office 365 Using Microsoft Graph APIMar 17, 2018. In this article, I have explained how to retrieve user properties from Office 365 using Microsoft Graph API
  • Shadow Properties In Entity Framework CoreMar 10, 2018. Entity framework core added many new features that are already present in older entity framework versions. One of the features of Entity framework core is "Shadow Properties". The feature "Shadow Properties" was originally introduced in EF 7.
  • Entity Framework Core Feature - Global Query FiltersMar 02, 2018. This feature is also refer as Model-level query filters. It allows to specify filter in the model level that are automatically applied to all queries that executed on the context on the specified type. It means that entity framework automatically adds the filter in where clause before executing the LINQ queries. Usually Global query filters are applied in OnModelCreating method of context. This filters are also automatically applied to LINQ queries involving the entity types referenced indirectly like included as navigation property.
  • What Does This Little Check Box DoFeb 21, 2018. Ever wander around SQL Server properties and wonder what these little check boxes turn on? I do, and I get very tempted to check them. Here is one of those tempting little boxes that seems pretty handy. Use query governor to prevent long running queries.
  • Search Word Or SubString From Paragraph Or String Using JavaScript And jQueryFeb 13, 2018. In this article, we will learn how to search and locate the words or substrings in the paragraphs or large strings. We will achieve this by using both JavaScript and JQuery.
  • Properties Of Object.prototype In JavaScriptFeb 05, 2018. Object.prototype is used to inherit properties and methods to the Constructor method, it may be overridden. We can use any constructor to create the object of another type with the help of Object.create() method and assign to the new constructor prototype.
  • Boolean Search Basics For Recruiters - Tutorial OneJan 31, 2018. Boolean Search is a mathematical logic which we use to put on Google, LinkedIn, and other job boards etc. to get the accurate and relevant results while expanding and narrowing the strings with key operators like AND, OR, NOT etc.
  • Loading Base64 Images In Xamarin.FormsJan 30, 2018. In this article, we will learn to load Base64 String Images into Images in Xamarin.Forms without using any External Plugins like FFMpeg Image Loader Plugin.
  • View Customization With JavaScript In Dynamics 365Jan 24, 2018. You need to write a JS function with 2 parameters, when you’ll add it to view, first parameters will recieve rowData(value with metadata shown below for one cell) and userLCID(i.e. language code fof current user). Based on those 2 inputs you can decide what icon to show. And name of this function goes in Function Name: field in View’s property.
  • Deploying Multiple ASP.NET Core Apps To Docker And AzureJan 22, 2018. API - has controller with CRUD operations for a movies database. It uses a class library Data, which contains repositories. Database is hosted in Azure and connection string stored in application settings (appsettings.json).
  • 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.
  • Expression Bodied Members In C#Jan 18, 2018. What is Expression Bodied Members?1) Expression Bodied member is introduced in C#6.0 and enhanced in C#7.0. 2) Expression Bodied is a new technique or implementation to make code concise and readable. 3) Expression Bodied makes the type member(Constructor, Destructor, Methods, Property, Indexer) defined in a single expression. 4) Expression Bodied members can only be applied to the below list of type members: Constructor introduced in C#7.0 Destructor introduced in C#7.0 Property get accessor introduced in C#6.0 Property set accessor introduced in C#7.0 Methods introduced in C#6.0 Indexer introduced in C#7.0 The Syntax of expression body definition is:member => expression; where expression should be a valid expression and member can be any from above list of type members.Suppose we have a method or constructor that contain a single expression or line of code. Then In spite of using the traditional way to write code inside a method or constructor code block, we can write them as a single syntax. Those members who can follow this approach is known as Expression Bodied Members.
  • Google Chart With ASP.NET Core And Visual Studio CodeJan 13, 2018. The Google Chart API lets you dynamically generate charts with a URL string and embed these charts on a web page, or download the image for local or offline use. The Google Chart Tools enable adding live charts to any web page. They provide advantages such as a rich gallery of visualizations provided as image charts and interactive charts and they can read live data from a variety of data sources. Users embed the data and formatting parameters in an HTTP request, and Google returns a PNG image of the chart. Many types of chart are supported, and by making the request into an image tag the chart can be included in a web page.
  • Preventing Redirect Attacks In ASP.NET Core 2.0Jan 09, 2018. When your controllers redirect to another location based on user input (e.g. via query string), it is important to ensure that the location is not malicious and prevent open redirect attacks. The simplest way to ensure this is by examining the URL provided by the user.
  • Welcome To CSS / CSS3 Tutorial Series - Part OneJan 03, 2018. In this series you will learn about property-wise.
  • List Of Items In Query String From JavaScript And Fetch It In Code Behind In ASP.NETJan 02, 2018. When there is a situation where we have to pass more parameters and it exceeds browser character limit we can consider using JSON Array.
  • 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.
  • Partitioning In Azure Cosmos DBDec 18, 2017. This article gives an overview of partitioning in Azure Cosmos DB. The partition key is the JSON property (or path) within your documents that can be used by Cosmos DB to distribute data among multiple partitions.
  • Special Class Of C# Series - Part Two - OLE DB (Extended Properties)Dec 14, 2017. In this series of C# Special classes, we are going to see the special features available with the “OleDbConnection” class and its specialties.
  • Versioning ASP.NET Core 2.0 Web APIDec 13, 2017. As your Web API changes, you would need to add versioning support in order for clients to continue working correctly. Adding versioning support in ASP.NET Core involves first configuring services in Startup and then choosing a versioning strategy i.e. via query string, URL or HTTP header.
  • Angular 5 Property - Event BindingsDec 02, 2017. Binding is the process which forms the connection between the application UI and the data which comes from the business logic. In Angular it can be called the automatic synchronization of the data and the view.
  • 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.
  • Simplest WPF Dependency Property For Beginners On Background ColorNov 19, 2017. Dependency property is not wrapped over any private members unlike CLR properties, and it is also stored in Key-Value pairs inside the DependencyObject host instance. You must use Dependency properties if you need to create and apply properties on custom usercontrols, or change properties based on external inputs like Theme, Style, animation etc, or while applying data binding or set with a resource (static/dynamic) .
  • Perfect Scrollbar Performance Improvement In AngularNov 18, 2017. Here the idea is not to override the existing behavior of the perfect-scrollbar, definitely it should be an optional choice. I mean, it should work in such a way that; if we set the property to "true" then lazy loading should enable and if we set it to false then perfect-scrollbar should work as as a default one.
  • 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#.
  • What Is Struct And When To Use Struct In C#Nov 15, 2017. 'Struct' keyword is used to create a structure. A structure can contain variables, methods, static constructor, parameterized constructor, operators, indexers, events, and property. A structure can not derive/inherit from any structure or class. A structure can implement any number of interfaces. Structures provide better performance.
  • Using Optional Query Parameters With Microsoft Graph API - Part TwoNov 14, 2017. When you fire an API call to MS Graph, it will return the JSON result with all the properties. You may not need all the properties of a result set always. When you want MS Graph API to return only certain properties, then use $select parameter to specify which properties you want in result set.
  • Xamarin.Forms - Create A Login Page (MVVM)Nov 14, 2017. In this code we created the followings properties: Email, Password and the command SubmitCommand() that we will use in the Login command button in the Login page. We use the ICommand interface that allows defining and implementing a command what we call commanding.
  • Configuring SQL Server 2016 Express On LAN For C# Connection StringNov 08, 2017. In this article I will share my experience about configuring SQL Server 2016 Express on LAN for SQL connection using my C# application’s connection string
  • 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 User Profile Properties Using SPFx And PnP JS In SharePoint OnlineNov 05, 2017. SharePoint Framework is the new development model in which a lot of work has been going on since it went to General Availability on Feb 23, 2017. It is a page and web part model that provides full support for client-side SharePoint development, easy integration with SharePoint data and support for open source tooling. With the SharePoint Framework, you can use modern web technologies and tools in your preferred development environment to build productive experiences and apps in SharePoint.
  • Getting Started With Receipt Card Design Using Microsoft Bot FrameworkOct 29, 2017. The Bot Framework supports different type of rich cards and provides a richer interaction experience to the user. In this article, I will show how to integrate Receipt card UI design in a Bot Application. If you are developing a shopping card Bot chat application; receipt card is very important. Receipt card class has property as a list of items, total, tax, vat, title and image. We can re-use all receipt card properties and add tab action event for navigating to original invoice website.
  • Debugging Tips - Part TwoOct 27, 2017. While working on complex classes/objects, it really takes two more clicks to either add that object to the Watch window or expand the object in visualizer and navigate to a specific property.
  • Debugging Tips - Part OneOct 24, 2017. A cool attribute to save some debugging time is DebuggerTypeProxy (Namespace: System.Diagnostics). Using this attribute, you can write your own logic to interpret the object at debug time. Meaning, if you have a list of class objects then you can project on certain properties and force debugger to show the value off of this proxy class. This attribute is applicable to Structures, Classes and Assemblies.
  • Learn Universal Windows Programming Via Modern C++ (AutoSuggestBox Control)Oct 19, 2017. In this article we'll learn how to implement AutoSuggestBox and some of the important events and properties.
  • Find And Replace Text In Word Document Using C#Oct 18, 2017. On Microsoft Word, we can find special text strings and replace them with new text strings easily. We can replace all the searched text automatically at one time and we can also only replace some of them from the searched results. This article will mention various approaches of the finding and replacing feature on the word document by using a .NET API Spire.Doc independently (without using any third-party code) as below.
  • Different Operation On SharePoint People PickerOct 14, 2017. I developed this POC, which often proves helpful to deal with investigating user properties
  • 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.
  • Sending Bot Reply Message With Attachment Using Bot FrameworkOct 07, 2017. The Bot Framework enables you to build bots that support different types of interactions with users. You can design conversations in your bot to be freeform. Your bot can also have more guided interactions where it provides the user choices or actions. The conversation can use simple text strings, the message with an attachment like the image, File (pdf, word, excel, ppt), mp3, Video or more complex rich cards.
  • 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.
  • 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).
  • Getting Started With Customizing A FormFlow Using Microsoft Bot FrameworkSep 25, 2017. The Bot Framework enables you to build bots that support different types of interactions with users. You can design conversations in your bot to be freeform. Your bot can also have more guided interactions where it provides the user choices or actions. The conversation can use simple text strings or more complex rich cards that contain text, images, and action buttons. And you can add natural language interactions, which let your users interact with your bots in a natural and expressive way.
  • New String Function In SQL Server 2017Sep 06, 2017. It requires one separator argument and a minimum of two arguments otherwise it raises an error. All the arguments are implicitly converted to string types and then they are concatenated.
  • 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.
  • Getting Started With Dialog Using Microsoft Bot FrameworkAug 28, 2017. The Bot Framework enables you to build bots that support different types of interactions with users. You can design conversations in your bot to be freeform. Your bot can also have more guided interactions where it provides the user choices or actions. The conversation can use simple text strings or more complex rich cards that contain text, images, and action buttons. And you can add natural language interactions, which let your users interact with your bots in a natural and expressive way.
  • 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.
  • Learn Universal Windows Programming Via Modern C++ (Button Control)Aug 10, 2017. Button control allows the user to click to perform actions, there are mainly two properties, content and click event. Content properties are used to the set the caption of the Button and click event is used to trigger the event.
  • Objects Comparer In .NETAug 09, 2017. Objects Comparer is an object-to-object comparer, which allows you to compare objects recursively member by member and define custom comparison rules for certain properties, fields or types.
  • ASP.NET MVC - Using Resource Files To Manage String ConstantsAug 08, 2017. In this article, we will see how we can save strings in a resource file instead of constants spread all over the application.
  • Learn About Angular Bindings - Part TwoJul 30, 2017. This article demonstrates how to configure various types of Binding in Angular. This article starts with Event Databinding. After that, it demonstrates Two-Way Binding, Event Emitter, Input and Output properties with a source-code explanation.In the end, the article discusses ngModel. Kindly refer to my old article Angular Bindings Part One to understand other bindings Interpolation and Property Binding.
  • ASP.NET MVC Model Validations Using Data AnnotationsJul 27, 2017. In this article, I will explain how to implement model validations using data annotations in asp.net mvc. In asp.net mvc we can easily implement validation by using Data Annotation properties.
  • 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.
  • Get User Profile Properties Data in SharePoint Designer 2013 WorkflowJul 18, 2017. Workflows helps SharePoint users to collaborate on documents, list items and to manage tasks by implementing business processes on documents and list items. Creating and assigning tasks to Manager is a very common scenario in workflows. All the user related information is stored in User profile service application (UPA). Although this sounds very straightforward, getting the user profile properties of the logged in user is very tricky in SPD 2013 workflow.
  • 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.
  • Using PowerApps - Authoring Made Simple And PowerfulJul 16, 2017. I am glad to bring you up with the latest change in the PowerApps Studio, in the latest version (2.0.660), the enhanced capabilities are showed and discussed in this article, PowerApps Studio had changes in the Properties Panel, Viewing data with the edit form, global variables, and the reset function.
  • 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.
  • 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.
  • Working With Variables In Windows PowerShellJun 27, 2017. Windows PowerShell variables are quite different when you compare them with Cmd.exe variables. In Command-prompt, all the variables are environment variables and they can only store a string of text. But in Windows PowerShell, variables can store more than just text, they store objects.These variables help you to create reliable scripts.
  • Why String Is ImmutableJun 20, 2017. Why String Is Immutable.
  • SPFx Property Pane Configuration OptionsJun 19, 2017. Let us see the options available for SharePoint framework web part property pane configurations.
  • 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.
  • Code Improvement Techniques In C#Jun 13, 2017. General code improvement technique over string.empty, string.Equals, string.Intern, StringBuilder, string.Format, case insensitive comparisons, using Block and Linq - First, FirstOrDefault, Single and SingleOrDefault. Main focus points are - what are the advantages and the purpose to use these.
  • Handle Transient Data With Application Properties In Xamarin.FormsMay 19, 2017. Handle Transient Data With Application Properties In Xamarin.Forms.
  • SharePoint On Premises 2013, 2016/ SharePoint Online JSOM - _spPageContextInfo Object In Different Environment / VersionsMay 13, 2017. In this article I’ll show properties of _spPageContextInfo in different versions of SharePoint (2013 on premises, 2016 on premises) and in SharePoint online. You might be wondering why there is a need for this, but let me explain.
  • 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.
  • How To Use And Bind Chart Control In ASP.NET With XML DataMay 07, 2017. In this tutorial, I will show you how to use and bind Chart Control and its relevant properties in ASP.NET, using C# with XML data source.
  • How To Convert And Bind JSON String In To ASP.NET GridView With C#Apr 29, 2017. This article introduces you to converting and binding JSON string into ASP.NET GridView with C#.
  • Commonly Used Built In String Functions In SQL ServerApr 25, 2017. This article illustrates commonly used built in string functions in SQL Server.
  • Implementing Common Audit Fields With EF Core’s Shadow PropertyMar 20, 2017. Implementing Common Audit Fields with EF Core’s Shadow Property.
  • How To Create Dynamic Strings In C#Mar 11, 2017. In this article, we shall see how to create dynamic strings in C#.
  • Creating User Property Programmatically Using JSOM In SharePoint/ O365Mar 07, 2017. In this article, you will learn how to create user property programmatically, using JSOM in SharePoint/ O365.
  • Creating A New User Property Programmatically In SharePoint /O365 using CSOMMar 04, 2017. In this article, learn creating a new User property programmatically In SharePoint/O365 using CSOM.
  • 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.
  • O365 User Profile Property Creation And Manage User Properties In SharePoint OnlineFeb 17, 2017. This article demonstrates how to create and use a user property in SharePoint Online (O365).
  • 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.
  • Adding Custom Properties To SPFx Web Part Properties Pane - Part TwoFeb 05, 2017. In this article, you will learn how to define and add custom properties to SPFx Web part properties pane.
  • Adding Custom Properties To SPFx Web Part Properties Pane - Part OneFeb 02, 2017. In this article, you will learn the basics of creating a custom pane property definition file. This helps with adding custom properties to SPFx web part properties pane.
  • Implement Client Caching For SharePoint PropertiesJan 27, 2017. In this article, we will explore HTML5 Local Storage API, using which, the Web Applications can store data locally in the user’s browser.
  • Adding Slider Property To SPFX Web Part Properties PaneJan 27, 2017. In this article, you will learn how to add slider property to SharePoint Framework Web part properties pane.
  • Working With Cascading Dropdowns In SPFx Webpart PropetiesJan 12, 2017. In this article, you will learn how to populate cascading dropdown options in SharePoint Framework (SPFx) web part properties pane.
  • 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.
  • Customizing SharePoint Framework Web Part Properties - Part FiveJan 08, 2017. In this article, you will learn how to bind the values dynamically to the dropdown field of the SharePoint framework web part properties pane.
  • Customizing SharePoint Framework Web Part Properties - Part FourJan 07, 2017. In this article, you will learn how to add the dropdown fields to SharePoint Framework Web part properties pane.
  • Customizing SharePoint Framework Web Part Properties - Part ThreeJan 04, 2017. In this article, you will learn how to add multiple pages to the properties pane of SharePoint Framework web part.
  • AngularJS 2.0 From The Beginning - Output Property Binding - Day FiveJan 03, 2017. In this article, you will learn about the output property binding process in AngularJS 2.0.
  • Customizing SharePoint Framework Web Part Properties - Part TwoDec 30, 2016. In this article, you will learn how to add custom properties to the SharePoint Framework web part. Check box properties are considered here.
  • Customizing SharePoint Framework Web Part Properties - Part OneDec 27, 2016. In this article you will learn about custom web part properties. The custom web part properties can be added to the SharePoint framework web part.
  • Practical Approach To ASP.NET Web Services - Part Four - Web Method Attribute PropertiesDec 06, 2016. In this article, you will learn about Web Method Attribute Properties in ASP.NET Web Services.
  • MIM 2016 With SharePoint 2016 User Profile Service - Import Custom Property From Active DirectoryNov 29, 2016. In this article, you will learn how to import Custom property from Active Directory.
  • Node.js - Query String And API - Day TwelveNov 28, 2016. In this article, you will learn about Query String and API in Node.js.
  • Working With Web Part Properties Of SharePoint Online Pages Using PnP Core CSOM LibraryNov 09, 2016. In this article, you will learn how to retrieve and update the web part properties of a page using PnP Core CSOM library on SharePoint online sites.
  • To Filter SharePoint List View Using Query String Web Part With No CodeOct 22, 2016. In this article, we are going to see how the "Query String Filter" Web Part can be used to filter the SharePoint List View Web Part values.
  • Update User Profile Properties In SharePoint 2016 Using Nintex WorkflowOct 15, 2016. In this article you will learn how to Update User Profile Properties in SharePoint 2016 using Nintex Workflow.

About string-properties

NA
Hire a remote developer
Looking to add more bandwidth to your software team? Web Developers, designers, testers are now available on demand. Flexible hours, very competitive rates, expert team and High Quality work.
X

Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now