Skip to content

mdlExtensions

mdlExtensions is a VB.NET module that defines one extension method for List(Of clsImageDocumentNameCode). It standardizes how UI-facing lists receive a leading blank document-name option.

Purpose

  • Adds a sentinel clsImageDocumentNameCode entry with code BLANK and a single-space description at index 0 of an existing list.

Context

  • Namespace: SAIF.Business.Imaging
  • Assembly/package: SAIF.BOF.Business.Imaging

Public members

Member Signature Purpose
AddBlankOption Public Sub AddBlankOption(ByRef values As List(Of clsImageDocumentNameCode)) Extension method that prepends a clsImageDocumentNameCode whose Code = "BLANK" and CodeDescr = " ".

Behavioral notes

  • The method creates the blank option with an object initializer and inserts it with values.Insert(0, value).

Constraints and usage notes

  • Because the parameter is passed ByRef, callers hand the original list instance to the extension method and receive the inserted blank row in place.

Sources

  • Business\SAIF.Business.Imaging\clsImageDocumentNameCode.vb