Archive Browser
Download CustomTypeConverter3Strings.zip, last updated 21/07/2019 (46.01 KB)
Download- md5: ef2cae6c69843ac64c4abb186883c29d
- sha1: 7c19377cc0793135f25bf2104d392ee3bb1d65fd
- sha256: 8dbbf6fd753aea44f5184a1d839af54fe47d9e1acf64ff7c018e22024eca9afe
using System.ComponentModel;
// Creating a custom type converter part 3: Types to string
// https://www.cyotek.com/blog/creating-a-custom-type-converter-part-3-types-to-string
// This work is licensed under the Creative Commons Attribution 4.0 International License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
// Found this example useful?
// https://www.paypal.me/cyotek
namespace Cyotek.Demo.CustomTypeConverter3
{
internal sealed class UserClass : INotifyPropertyChanged
{
#region Private Fields
private UserTuple _tupleA;
private UserTuple _tupleB;
#endregion Private Fields
#region Public Events
public event PropertyChangedEventHandler PropertyChanged;
#endregion Public Events
#region Public Properties
public UserTuple TupleA
{
get { return _tupleA; }
set
{
_tupleA = value;
this.OnPropertyChanged(nameof(TupleA));
}
}
public UserTuple TupleB
{
get { return _tupleB; }
set
{
_tupleB = value;
this.OnPropertyChanged(nameof(TupleB));
}
}
#endregion Public Properties
#region Private Methods
private void OnPropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler;
handler = this.PropertyChanged;
if (handler != null)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
#endregion Private Methods
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate