public int CompareTo(Object obj) { if (obj == null) { return(1); } CustomFileItem cft = (CustomFileItem)obj; return(this.customFileName.CompareTo(cft.GetCustomFileName)); }
public object Clone() { CustomFileItem c = (CustomFileItem)this.MemberwiseClone(); c.keyName = (String.IsNullOrEmpty(this.keyName) ? null : String.Copy(this.keyName)); c.tag = this.tag; c.filePathFull = (String.IsNullOrEmpty(this.filePathFull) ? null : String.Copy(this.filePathFull)); c.specialFolderFullPath = (String.IsNullOrEmpty(this.specialFolderFullPath) ? null : String.Copy(this.specialFolderFullPath)); c.customFileName = (String.IsNullOrEmpty(this.customFileName) ? null : String.Copy(this.customFileName)); c.typeName = (String.IsNullOrEmpty(this.typeName) ? null : String.Copy(this.typeName)); //(typeof(FolderType).IsValueType) return(c); }