OOPFoundation 1.3.3

dotnet add package OOPFoundation --version 1.3.3
                    
NuGet\Install-Package OOPFoundation -Version 1.3.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OOPFoundation" Version="1.3.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OOPFoundation" Version="1.3.3" />
                    
Directory.Packages.props
<PackageReference Include="OOPFoundation" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OOPFoundation --version 1.3.3
                    
#r "nuget: OOPFoundation, 1.3.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OOPFoundation@1.3.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OOPFoundation&version=1.3.3
                    
Install as a Cake Addin
#tool nuget:?package=OOPFoundation&version=1.3.3
                    
Install as a Cake Tool

OOPFoundation

CST | TADS | POO

Defines Foundation abstractions, classes and interfaces for teaching **Object-Oriented Paradigm in C# **.

Structures

Packages

OOPFoundation : defines foundation abstractions, classes and interfaces.

Abstract Classes

ADecimalValidation implements IDecimalValidation : defines the DecimalIsValid() method

ADoubleValidation implements IDoubleValidation : defines the DoubleIsValid() method

AIntegerValidation implements IIntegerValidation : defines the IntegerIsValid() method

AText implements ISanitization, ITextValidation : defines methods

  • Sanitize() : used to sanitize (remove) undesired characters
  • TextIsValid() : used to verify if string has only valid [required] content. Validates when content is supplyed, except when isOptional flag is set to true.
  • customized ToString(mask) : allows string formatting, e.g. formats ABC123DEF with mask '###.###-###' as ABC.123-DEF

Interfaces

IDecimalValidation

IDoubleValidation

IFloatValidation

IIntegerValidation

ISanitization

ITextValidation

Concrete Classes

Currency extends ADecimalValidation: it is used to create a currency object to represent a real world currency e.g. BRL as for Brazilian Reais or GBP as for Great Britain Pound, validating and retaining its value

SanitizationPattern : it is used to standardize different and more common sanitization patterns like .CPF="0-9" (only digits are valid) or .CNPJ="0-9A-Z" (digits and upper letters are valid)

Text inherist AText : it is used to create text objects to validate and sanitize its value

Year extends AIntegerValidation : it is used to create year objects and validate its value, e.g. YearOfBirth

UML

Class Diagram

UML


NOTICE!

This is a NuGet package aimed at teaching Object-Oriented Paradigm concepts to a specific group of students.


Prof. Marcos M. Chaves

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OOPFoundation:

Package Downloads
OOPBusinessGeneric

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.3 82 4/30/2026