Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 635249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:23:03+00:00 2026-05-13T20:23:03+00:00

I am an ASP.NET C# web developer. The architecture followed is 3 layer The

  • 0

I am an ASP.NET C# web developer.
The architecture followed is 3 layer
The layers used are
1. UI
2. BLL (Sometimes Communicating with BLL is done using WebServices)
3. DAL
Pretty basic stuff.

What I would really like to have is a BLL.Common class in the BusinessLogics.
Here I would like to use some useful extensions and helper functions that we use in almost all applications.

An example will IsNullOrEmpty extension.

Which are the helper functions most commonly used by developers?
It would be better if I could get a list.

Regards,
Naveen

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:23:03+00:00Added an answer on May 13, 2026 at 8:23 pm

    There are sooo many. Lets see (some (very few) from one of my reusable libs):

    Generic Utils:

    • public static bool AreEqual(object val1, object val2)
    • public static bool IsNumber(string val, bool integerOnly, bool positiveOnly)

    Reflection Utils:

    • public static object Activate(string typeName)
    • public static PropertyInfo Property(Type t, string prop)
    • public static void SetValueSafe(string path, object target, object val) // Converts type to appropriate. Great for auto generated UIs
    • public static object ConvertType(Type expectedType, object val)
    • public static object GetValue(object target, string fullPath) // Allow dot expression

    Logger Utils:

    • Easy to use wrapper for log4net is a great help

    File Utils: // Note all of these have to use streams safely (dispose them)

    • public static void WriteFileContents(string filename, Stream contentStream)
    • public static byte[] GetStreamContents(Stream stream)
    • public static string GetTextFileContents(string file)
    • public static void WriteFileContents(string filename, byte[] contents)
    • public static void AssertDirIsReadWrite(string fileOrDir, bool attemptCreate)
    • public static string GetZipFileTextContents(string file)
    • public static void ZipFile(string file, string zipFile)
    • public static void ZipFiles(string directory, string filter, string zipFile)
    • public static string FindFileInDirectory(string file, string baseDirectory)
    • public static void CopyDirectory(DirectoryInfo from, DirectoryInfo target)
    • public static void ClearDirectory(DirectoryInfo dir)
    • public static IEnumerable GetDirectories(string baseDir)
    • public static IEnumerable GetFiles(string baseDir, string ext) // Recursive

    Colleciton Utils:

    • Add support for Linq like methods in non generic IEnumerable
    • public static void ForEach(IEnumerable e, Action action) // This one is great!
    • AreEqual
    • ToString
    • Cast
    • IsNullOrEmptySort
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a new ASP.NET website using Visual Web Developer 2008 Express edition and
Is it possible to develop an ASP.NET Web Service using the Visual Web Developer
I am an asp.net web application developer and I always have used Enterprise Library
I'm using Web Developer 2010, ASP.NET with the VB.NET programming language and a MS-Access
We are using ASP.Net Web services. The architecture is Desktop Based Application developed in
I've inherited an ASP.net web application where the previous developer used the convention of
I'm using Visual Web Developer Express 2010, Windows XP, and using ASP.NET MVC4 RC
I'm building an ASP.net application using Visual Studio Web Developer 2010 Express and have
I am playing with learning ASP.NET MVC as a non-web developer. I am trying
I am a new ASP.NET developer and I am developing a web-based suggestions box

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.