Category: C# Blogs

Sending base 64 messages to an Azure Storage Queue for Azure Function

Azure Functions Benjamin Perkins

If you happen to get this exception on an Azure Function when you have an Azure Storage Queue triggered Azure Function: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. Figure 1, base-64 message required for […]

Read More →

Service Bus triggered Azure Function AutoComplete false, duplicates

Azure Functions Benjamin Perkins

As you read here the default setting for AutoComplete is true.  When you create a Service Bus triggered Azure Function you install an extension named Microsoft.Azure.WebJobs.Extensions.ServiceBus as shown in Figure 1. Figure 1, Service Bus Azure Function AutoComplete The NuGet package is here and the source code here.  The point of this article is explain […]

Read More →

How to install .NET 5

Benjamin Perkins C#

This release is a big deal.  Basically, all the different versions of .NET like shown in the following bullet list are merged into this one version called .NET 5. .NET Framework .NET Core .NET Standard From .NET 5 all projects can be run cross platform and cross verticals like WPF and ASP.NET. Here are some […]

Read More →

Using the as keyword versus boxing in C#

Benjamin Perkins C#

When I convert one object to another using the keyword “as” and the original value is not of that type, the converted value simply becomes NULL. For example, if theItem is of type MessageBox, then row will be NULL. DataRowView row = theItem as DataRowView; However, when using this code, I.e. boxing. DataRowView row = […]

Read More →