Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / desktop / WPF

Always Trim Hard-Coded Control Name String Before Assignment To Avoid Misleading Compile Error Message

1.00/5 (3 votes)
6 Feb 2010CPOL 4.8K  
aCanvas.Name = aCanvas .Trim();
MIDL
aCanvas.Name = "aCanvas ".Trim();

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)