internal void FromServerFormat(ServerFormat sf) { this.SetAllNull(); if (sf.Culture != null) this.Culture = sf.Culture.Value; if (sf.Format != null) this.Format = sf.Format.Value; }
internal ServerFormat ToServerFormat() { ServerFormat sf = new ServerFormat(); if (this.Culture != null && this.Culture.Length > 0) sf.Culture = this.Culture; if (this.Format != null && this.Format.Length > 0) sf.Format = this.Format; return sf; }
internal void FromServerFormat(ServerFormat sf) { this.SetAllNull(); if (sf.Culture != null) { this.Culture = sf.Culture.Value; } if (sf.Format != null) { this.Format = sf.Format.Value; } }
internal ServerFormat ToServerFormat() { ServerFormat sf = new ServerFormat(); if (this.Culture != null && this.Culture.Length > 0) { sf.Culture = this.Culture; } if (this.Format != null && this.Format.Length > 0) { sf.Format = this.Format; } return(sf); }
internal ServerFormat ToServerFormat() { var sf = new ServerFormat(); if ((Culture != null) && (Culture.Length > 0)) { sf.Culture = Culture; } if ((Format != null) && (Format.Length > 0)) { sf.Format = Format; } return(sf); }