Click here to Skip to main content
13,353,462 members (66,111 online)

Articles by Richard Deeming (Articles: 4, Tip/Tricks: 9)

Articles: 4, Tip/Tricks: 9

RSS Feed

Average article rating: 4.79

ASP.NET Controls
General
Posted: 2 Jun 2006   Updated: 15 Jun 2006   Views: 66,800   Rating: 4.67/5    Votes: 17   Popularity: 5.75
Licence: The Code Project Open License (CPOL)      Bookmarked: 51   Downloaded: 508
An updated version of the AutoActivateControl class posted by Dundas Software.
C#
General
Posted: 31 Jul 2002   Updated: 15 Aug 2016   Views: 399,600   Rating: 4.84/5    Votes: 54   Popularity: 8.36
Licence: The Code Project Open License (CPOL)      Bookmarked: 129   Downloaded: 4,738
A pair of classes to encapsulate access to NTFS alternative data streams.
VB.NET
General
Posted: 13 May 2002   Updated: 13 May 2002   Views: 198,190   Rating: 4.67/5    Votes: 15   Popularity: 5.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 37   Downloaded: 291
Demonstrates a single-instance application which can pass command-line parameters to a previous instance.
Internet / Network
Network
Posted: 24 Sep 2002   Updated: 11 Nov 2003   Views: 410,950   Rating: 4.97/5    Votes: 59   Popularity: 8.81
Licence: The Code Project Open License (CPOL)      Bookmarked: 114   Downloaded: 6,838
Classes to enumerate network shares on local and remote machines, and convert local file paths to UNC paths.
No blogs have been submitted.

Average tips rating: 3.96

Tree Controls
General
Posted: 24 Jan 2012   Updated: 24 Jan 2012   Views: 7,420   Rating: 3.20/5    Votes: 5   Popularity: 2.62
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
You can make this slightly more reusable by targeting the IEnumerable interface and providing a function to return the children of each item:public static class EnumerableExtensions{ private static IEnumerable DescendantsAndSelfIterator( IEnumerable source, ...
C#
General
Posted: 23 Aug 2011   Updated: 23 Aug 2011   Views: 7,640   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
For .NET 4.0:using System;using System.Collections.Generic;using System.ComponentModel;using System.Reflection;using System.Linq.Expressions;static class AutomaticPropertyExtensions{ private static class Cache where T : class { public static readonly...
.NET Framework
General
Posted: 2 Aug 2017   Updated: 2 Aug 2017   Views: 3,250   Rating: 4.60/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Adding cancellation support to the SendMailAsync method
Windows Presentation Foundation
General
Posted: 6 Feb 2015   Updated: 6 Feb 2015   Views: 7,390   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 76
This is an alternative for "Markup Extension for Generic classes"
Algorithms & Recipes
General
Posted: 17 May 2011   Updated: 17 May 2011   Views: 2,610   Rating: 0.00/5    Votes:    Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
You can use System.Linq.Expressions to avoid converting the Enum value to an integer type.Here's a solution inspired by the MiscUtil project[^]:using System;using System.Collections.Generic;using System.Linq;using System.Linq.Expressions; public static class...
Programming Tips
General
Posted: 18 Jan 2011   Updated: 18 Jan 2011   Views: 4,950   Rating: 4.20/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Another option would be to use the Elements extension method[^]:var root = XElement.Load("Books.xml"); var books = from node in root.Elements("Book").Elements("Subject") select node.Value.Trim(); foreach (string subject in books){ listBox1.Items.Add(subject);}
Posted: 25 Jan 2011   Updated: 25 Jan 2011   Views: 4,490   Rating: 2.33/5    Votes: 3   Popularity: 1.43
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
You can avoid all of this by using the explicit cast operators:public XElement Element{ set { this.MyVar1 = (string)value.Element("MyVar1") ?? "NO VALUE"; this.MyVar2 = (string)value.Element("MyVar2") ?? "NOVAL"; }}Both XElement and XAttribute define...
Posted: 24 Jan 2012   Updated: 24 Jan 2012   Views: 6,150   Rating: 2.33/5    Votes: 3   Popularity: 1.43
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
If you're stuck with .NET 3.5, you can use the Aggregate extension method[^]:string cities_string = cities.Aggregate(new StringBuilder(), (sb, c) =>{ if (0 != sb.Length) sb.Append(", "); sb.Append(c.Name); return sb;}, sb => sb.ToString());
Posted: 18 Jul 2014   Updated: 18 Jul 2014   Views: 5,060   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
This is an alternative for "Using Extension Methods To Avoid XML Problems"
No reference articles have been posted.

Richard Deeming
Software Developer Nevalee Business Solutions
United Kingdom United Kingdom
No Biography provided


Advertise | Privacy |
Web01 | 2.8.180111.1 | Last Updated 22 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid