2019-06-30 22:01:19 +00:00
|
|
|
|
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
|
|
|
|
|
{
|
2019-07-04 23:26:53 +00:00
|
|
|
|
public readonly string ProtectedValue;
|
2019-06-30 22:01:19 +00:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2019-07-04 23:26:53 +00:00
|
|
|
|
return ProtectedValue;
|
2019-06-30 22:01:19 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ProtectedString(string value)
|
|
|
|
|
{
|
2019-07-04 23:26:53 +00:00
|
|
|
|
ProtectedValue = value;
|
2019-06-30 22:01:19 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static implicit operator string(ProtectedString protectedString)
|
|
|
|
|
{
|
2019-07-04 23:26:53 +00:00
|
|
|
|
return protectedString.ProtectedValue;
|
2019-06-30 22:01:19 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static implicit operator ProtectedString(string value)
|
|
|
|
|
{
|
|
|
|
|
return new ProtectedString(value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|