Welcome to the Code Associate .NET API documentation. This codebase was formed from work done by Kevin Bosch as a consultant across many different projects. Kevin has worked with software development over the last 18 years and over this time has come to see patterns in code which get written over and over again. In this code collection you will see common functions and patterns which can be utilized as a leap frog for development. Part of my goal for this library was to provide a open view of these common functions the and provide a full suite of test scripts using the Nunit Framework to assert they work as expected. There is nothing startling around these functions and chances are you will have seen some variations in the past as they are common across many different projects. To view API documentation with a Searchable index..

In a layered architecture this assembly would be commonly referred to a cross cutting concern


The CA.Common is contains the following namespaces

Structures

  StructureDescription
BoolResultMessage
This class is a very simple and elegant example of using an implicit operator. It is very common to test for the result of a function call and if not successful to provide further detail via a second call. However instead of having to detect an error then going back to fetch the error based on a code as a separate call, this class provides a mechanism though which you can seamlessly attach a message to a boolean result. A good example of usage would be in authentication logic.