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#
C# Compiler Error – CS8192 provided language version is unsupported
In this blog post, you’ll learn more about the C# Compiler Error – CS8192 and the related message description C# Compiler Error Code CS8192 C# Compiler Description for the Code :CS8192 Provided language version is unsupported or invalid: ‘{0}’.
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
C# Compiler Error – CS0201 only assignment, call, increment, decrem
In this blog post, you’ll learn more about the C# Compiler Error – CS0201 and the related message description C# Compiler Error Code CS0201 C# Compiler Description for the Code :CS0201 Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement
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 Error – CS0104 ‘{0}’ is an ambiguous reference between
In this blog post, you’ll learn more about the C# Compiler Error – CS0104 and the related message description C# Compiler Error Code CS0104 C# Compiler Description for the Code :CS0104 ‘{0}’ is an ambiguous reference between ‘{1}’ and ‘{2}’
Launching the Wifi Settings App using URI Scheme in Windows Phone 8
Below is a sample code snippet demonstrating on how to launch the Wifi Settings App via the URI Scheme and LaunchUriAsync method in Windows Phone using C#. Launching the Wifi Settings App using URI Scheme in Windows Phone 8
C# Compiler Error – CS1979 query expressions over source type ‘dyna
In this blog post, you’ll learn more about the C# Compiler Error – CS1979 and the related message description C# Compiler Error Code CS1979 C# Compiler Description for the Code :CS1979 Query expressions over source type ‘dynamic’ or with a join sequence of type ‘dynamic’ are not allowed
C# Compiler Error – CS0723 cannot declare a variable of static type
In this blog post, you’ll learn more about the C# Compiler Error – CS0723 and the related message description C# Compiler Error Code CS0723 C# Compiler Description for the Code :CS0723 Cannot declare a variable of static type ‘{0}’
C# Compiler Warning – CS1591 missing xml comment for publicly visible
In this blog post, you’ll learn more about the C# Compiler Warning – CS1591 and the related message description C# Compiler Warning Code CS1591 C# Compiler Description for the Code :CS1591 Missing XML comment for publicly visible type or member ‘{0}’
C# Compiler Error – CS7086 module name ‘{0}’ stored in ‘{1}’ must m
In this blog post, you’ll learn more about the C# Compiler Error – CS7086 and the related message description C# Compiler Error Code CS7086 C# Compiler Description for the Code :CS7086 Module name ‘{0}’ stored in ‘{1}’ must match its filename.
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