예제 #1
0
            public bool Equals(SvnChangeList obj)
            {
                if (obj == null)
                {
                    return(false);
                }

                return(List == obj.List);
            }
예제 #2
0
            public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
            {
                SvnChangeList chl = value as SvnChangeList;

                if (chl != null)
                {
                    return(chl);
                }

                string cl = value as string;

                if (cl != null)
                {
                    return(string.IsNullOrEmpty(cl) ? null : new SvnChangeList(cl));
                }

                return(base.ConvertFrom(context, culture, value));
            }
예제 #3
0
            public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
            {
                if (destinationType == null)
                {
                    throw new ArgumentNullException("destinationType");
                }

                SvnChangeList chl      = value as SvnChangeList;
                string        listName = chl != null ? chl.List : null;

                if (destinationType.IsAssignableFrom(typeof(string)))
                {
                    return(listName);
                }
                else if (destinationType == typeof(SvnChangeList))
                {
                    return(chl);
                }

                return(base.ConvertTo(context, culture, value, destinationType));
            }