Microsoft Authenticator App

Security Cyber Benjamin Perkins

If you are still using UID and Password as the only means for authentication, you might consider implementing Multi Factor Authentication (MFA).  One way to do this is by using the Microsoft Authenticator App which you can read all about it here.  I am writing this mostly to help me remember how I configured it […]

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 →

Searching a generic List collection using C#

Benjamin Perkins C#

Before you begin loading and populating collections, you should decide which collection to use based on the requirements. Some collections are built for speed when selecting, some are built for speed when loading, other for sorting, etc. A good description can be found here. This example I will search a strongly typed List for a […]

Read More →

Common Language Runtime

Benjamin Perkins C#

Runtime, in computer terms, is the time in which the computer program is actively executing the written code. The Common Language Runtime is a platform where a managed program executes. There are many advantages when a managed program is run in this environment. For example: Easy usage of components written in other programming languages Garbage […]

Read More →

Base Class Library (BCL)

Benjamin Perkins C#

The .NET framework provides a set of base class libraries which provide functions and features which can be used with any programming language which implements .NET, such as Visual Basic, C# (or course), Visual C++, etc. The base class library contains standard programming features such as Collections, XML, DataType definitions, IO ( for reading and […]

Read More →