Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding your way in two big projects
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01595937
Message ID:
01595939
Vues:
60
>Hi everybody,
>
>I am wondering how do you work with relatively big projects especially when you have a break in a few months? Say, I do remember I wrote something for the date formatting in case this is an empty date ('1900-01-01') to return / / instead. However, I absolutely don't remember how that function was called or where it was used and in which solution it was implemented.
>
>So, I have a general question as how do you navigate in the C# projects and how do you know which methods are available to you?
>
>Thanks in advance.

Luckily I remembered to check MiscExtensions.cs file in the Library project where I have this extension
public static String FormatDateToString(DateTime? date)
        {
           if (date.HasValue)

              return date.Value.ToString("MM/dd/yyyy hh:mm:ss tt");

           else

              return "  /  /  ";
        }
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform