CSharpFeeds - All your C# feeds in one place.

Wednesday, January 27, 2010

Creating attached properties

by luisabreu via LA.NET [EN] on 1/27/2010 10:20:27 AM

Now that you understand what attached properties are, we’re in the position to look at what is needed for creating attached properties. Since we’re building custom code, we do really need to rely in the RegisterAttached method (of the DependencyProperty class). Creating a new attached properties means doing the following: adding a static DependencyProperty field to the class; using the RegisterAttached method for creating the field which is used as a store for the dependency property; ...

[ read more ]

Playing With LINQ: Getting Interface Property Implementations

by Paulo Morgado via Paulo Morgado : C# on 1/27/2010 2:22:00 AM

Today, my friend Nuno was writing some code to get the PropertyInfos of a class implementation of an interface. Given this interface: public interface ISomeInterface { int IntProperty { get; set; } string StringProperty { get; } void Method(); } and this class: public class SomeClass : ISomeInterface { int ISomeInterface.IntProperty { get; set; } public int IntProperty { get; private set; } public string StringProperty { get; private set; } public void Method( ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us