Roblox-File-Format/DataTypes/ProtectedString.cs
CloneTrooper1019 e14b092aa7 Added read support for Instance Attributes.
This isn't 100% finished yet. I intend to add some better API for reading specific attributes, as well as write support (of course!)
2019-10-31 21:40:31 -05:00

28 lines
752 B
C#

namespace RobloxFiles.DataTypes
{
/// <summary>
/// ProtectedString is a type used by some of the XML properties.
/// Here, it only exists as a wrapper class for strings.
/// </summary>
public class ProtectedString
{
public readonly string ProtectedValue;
public override string ToString() => ProtectedValue;
public ProtectedString(string value)
{
ProtectedValue = value;
}
public static implicit operator string(ProtectedString protectedString)
{
return protectedString.ProtectedValue;
}
public static implicit operator ProtectedString(string value)
{
return new ProtectedString(value);
}
}
}