.NET Chaînes Utilitaires (String Utils)






1.50/5 (10 votes)
Jul 18, 2003
1 min read

71010

320
Classes Library for String manipulations in Your .NET projects
Introduction
This library has been made in the same time of the first i post :
This library has been made for work with strings and Url, but you can add a lot of classes as you like. This library has been made for present the concept of the Classes Library to Beginner .NET developers.
You have 2 Classes in this Library :
- ManipChaine : This class have all the String functions and sub
- QueryUrl : This Class contains all the functions for Url String
An exemple of the fonctions which transform Normal Text (with VbCr) in HTML (With
) :
Public Shared Function FormatteTxtForHTML(ByVal texte As String) As
String
' Permet de formatter le texte issu d'une base de données pour un
affichage dans une page HTML
If texte Is Nothing Then
Return
Nothing
Else
Return Replace(texte.Replace(vbCr, "<BR>"),
vbCrLf, "<BR>")
End If
End Function
You can easily add specific functions or classes in this Library for adapt il at your solution.
For information, we have in my company a similary library which contains all specific functions and working classes. We use it in all solution we make.
Conclusion
This Classes Library is one simple example of Solution system in Visual Studio.NET, You can make a lots of simple and specific Library (one for the database connexion, another for the specific fonctions, ...) and add all this dll in your global solution for your final project.
I think it's a good and simple project for understand this logic.
You can also see the french version of this article more directed for the creation and use of the Class Library :