Click here to Skip to main content
15,885,365 members
Articles / Web Development / ASP.NET
Article

.NET Chaînes Utilitaires (String Utils)

Rate me:
Please Sign up or sign in to vote.
1.50/5 (11 votes)
15 Mar 20041 min read 70.6K   319   13   3
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

Sample Image - StringUtils.jpg

An exemple of the fonctions which transform Normal Text (with VbCr) in HTML (With
) :

VB
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 :

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Switzerland Switzerland
I'm French Web developer and MVP.
My favorites languages are ASP.NET and SharePoint. I made a lot of projects in open source and many articles.
You can see all my articles on french developer sites like :
- http:/:www.asp-php.net
- http://www.aspfr.com

My technical blog is in French community :
- http://blogs.developpeur.org/fabrice69/

Romelard Fabrice [MVP]

Comments and Discussions

 
GeneralPerformance of replace Pin
dog_spawn19-Jul-03 2:40
dog_spawn19-Jul-03 2:40 
GeneralRe: Performance of replace Pin
Romelard Fabrice (Alias F___)19-Jul-03 23:38
Romelard Fabrice (Alias F___)19-Jul-03 23:38 
GeneralRe: Performance of replace Pin
Quentin Pouplard16-Mar-04 13:44
Quentin Pouplard16-Mar-04 13:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.