My contemplations and diurnal novelties are publicized here


  • How to Gets or sets the fully qualified path of the current working directory.
    • Environment.CurrentDirectory:-
  • How to get Application Data folder:-
    • Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
  • How to get current application name:-
    • System.Reflection.Assembly.GetExecutingAssembly().GetName().Name
  • How to download a file (zip) from a url/web service (php) using c#
  • How to extract zip file using c#.net (till Framework 4.0)
  • How to replace a string in an string array in c#
    • var values = line.Split(‘,’);
    • var sanatizedValues = values.Select(x => x == “” ? x : “Null”).ToArray(); OR
    • string[] items2 = items.Select(x => x.Replace(“one”, “zero”)).ToArray();

       

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: