/// <summary> /// Clones this instance. /// </summary> /// <returns>A duplicated module.</returns> public ProjectModule Clone() { var ret = new ProjectModule(); ret.Path = Path; ret.IsExternal = IsExternal; ret.SNKeyPath = SNKeyPath; ret.SNKeyPassword = SNKeyPassword; foreach (var r in Rules) { ret.Rules.Add(r.Clone()); } return(ret); }
/// <summary> /// Clones this instance. /// </summary> /// <returns>A duplicated module.</returns> public ProjectModule Clone() { var ret = new ProjectModule { Path = Path, IsExternal = IsExternal, SNKeyPath = SNKeyPath, SNKeyPassword = SNKeyPassword }; foreach (var r in Rules) { ret.Rules.Add(r.Clone()); } return(ret); }
/// <summary> /// Clones this instance. /// </summary> /// <returns>A duplicated module.</returns> public ProjectModule Clone() { var ret = new ProjectModule(); ret.Path = Path; ret.RawData = RawData; ret.IsExternal = IsExternal; ret.SNKeyPath = SNKeyPath; ret.SNPubKeyPath = SNPubKeyPath; ret.SNDelaySig = SNDelaySig; ret.SNPubSigKeyPath = SNPubSigKeyPath; ret.SNSigKeyPath = SNSigKeyPath; ret.SNKeyPassword = SNKeyPassword; ret.SNSigKeyPassword = SNSigKeyPassword; foreach (var r in Rules) { ret.Rules.Add(r.Clone()); } return(ret); }