Category: C#

Example of Predicate Delegate in C#

Predicate Delegate is an interesting feature in .NET Framework which is like a reference to a function which returns either true or false. Example of Predicate Delegate in C# Below is a sample code snippet demonstrating the usage of Predicate Delegate in C#

How to Detect the Current device in Universal App ?

To detect the current device platform in the Windows Universal App , the developers can use the predefined ifdirectives WINDOWS_PHONE_APP and WINDOWS_APP . How to Detect the Current device in Universal App ? Eg : #if WINDOWS_PHONE_APP // wp8.1 #elseif WINDOWS_APP // windows 8.1 #endif

How to Download Map in Windows Phone 8 Programatically using C#?

The Windows Phone 8 SDK provides the MapDownloadTask which lets the users to download the region map which can be used for offline usage. This will launch the Map Download App which lets the users to select the map which needs to be downloaded. How to Download Map in Windows Phone 8 Programatically using C#? Below is a sample code snippet demonstrating how the user…

C# Compiler Warning – CS4026 the callermembernameattribute applied to

In this blog post, you’ll learn more about the C# Compiler Warning – CS4026 and the related message description C# Compiler Warning Code CS4026 C# Compiler Description for the Code :CS4026 The CallerMemberNameAttribute applied to parameter ‘{0}’ will have no effect because it applies to a member that is used in contexts that do not allow optional arguments