Quantcast
Channel: Developer Publish
Browsing all 14 articles
Browse latest View live

Triple-Quoted Strings in F# 3.0

F# supports 3 different types of strings which includes Normal , Verbatim ( @ ) and Triple-Quoted Strings . The first two are similar to what is available in C# . so what is this Triple-Quoted String...

View Article



Indentation as Program scope in F#

C# uses the flower bracket “{” and “}” to identify the block or scope of the function or program . F# is quite different in the sense that it uses the indentation or tab to identify the program scope...

View Article

Using F# Interactive in Visual Studio 2013

If you want to try out some simple F# programs in Visual Studio , you can use the  F# Interactive Window which is shipped with F#. This feature lets the developers to test small and simple F# code...

View Article

FSIAnyCPU Feature in Visual Studio 2013

In one of my previous blog post , i shared information about the FSharp Interactive features for F# Developers in Visual Studio 2013. The FSI in Visual Studio 2013 has a features called FSIAnyCPU which...

View Article

Image may be NSFW.
Clik here to view.

Getting CI Right for SQL Server & A Whirlwind tour of DBCC CHECKDB at Birmingham

Microsoft Data Platform Group – Birmingham is hosting its user group meet on the topic Getting CI Right for SQL Server & A Whirlwind tour of DBCC CHECKDB on Thursday, March 9, 2017 at 6:15 PM....

View Article


Image may be NSFW.
Clik here to view.

How to calculate difference between two dates in C# ?

There are times when you might to calculate the difference between two days in C# and get the number of days as result. How to calculate difference between two dates in C# ? Assuming both the start...

View Article

Image may be NSFW.
Clik here to view.

How to read the entire contents of a file to a string variable in C# ?

There are several ways in which you can read a text file in to a string variable in C#. One of the simple ways to achieve it is using the ReadAllText method of the File class. How to read the entire...

View Article

Image may be NSFW.
Clik here to view.

F# Recipe #1 – Display Odd Numbers between 0 and 100 in Console Window

Problem You need to write a F# program to display odd numbers between 0 and 100 in the console window. F# Program to display odd numbers between 0 and 100 in the Console Window. open System let main...

View Article


Image may be NSFW.
Clik here to view.

F# Recipe #2 – The type int is not compatible with type unit

Problem When writing your first F# program , you get the following error “The type int is not compatible with type unit”. You need to fix this. Solution The type unit is F#’s version of void. This...

View Article


Image may be NSFW.
Clik here to view.

F# Recipe #3 – program to find if the number is positive or negative

Problem Write a program in F# to find if the given number is a positive or negative number. F# program to find if the number is positive or negative. // Learn more about F# at...

View Article

Image may be NSFW.
Clik here to view.

How to Change the Start Page of the Xamarin Forms Application ?

By default , when you create a new Xamarin Forms application in Visual Studio , it creates a MainPage.xaml in the portable (PCL) project and this is set as the start page of your android and iOS...

View Article

Image may be NSFW.
Clik here to view.

Using Conditional Compilation in Xamarin Shared Project for iOS

There are times when you might want to perform an action that is specific to a device in the Xamarin Shared Project. For example , assume that you have to set the string named title within the Xaml...

View Article

Image may be NSFW.
Clik here to view.

MissingMethodException ‘Xamarin.Forms.Device.get_RuntimePlatform’ in...

There are times when you might get the System.MissingMethodException ‘Xamarin.Forms.Device.get_RuntimePlatform’ when working with the Xamarin.Forms application and using the method...

View Article


Image may be NSFW.
Clik here to view.

How to return JSON instead of XML in ASP.NET Web API when using Chrome ?

When using the ASP.NET Web API in Google Chrome , there are times when you see the XML output instead of JSON. You might want to request JSON data so that you can view it in the browser. How to return...

View Article
Browsing all 14 articles
Browse latest View live


Latest Images