internal H5SymbolicLink(LinkMessage linkMessage, H5Group parent) { this.Name = linkMessage.LinkName; (this.Value, this.ObjectPath) = linkMessage.LinkInfo switch { SoftLinkInfo softLink => (softLink.Value, null), ExternalLinkInfo externalLink => (externalLink.FilePath, externalLink.FullObjectPath), _ => throw new Exception($"The link info type '{linkMessage.LinkInfo.GetType().Name}' is not supported.") }; this.Parent = parent; }
internal H5SymbolicLink(string name, string linkValue, H5Group parent) { this.Name = name; this.Value = linkValue; this.Parent = parent; }