not sure if this works or not
This commit is contained in:
parent
65ccf405d7
commit
07ed23ecd8
@ -0,0 +1,27 @@
|
||||
namespace Mocha.Core.Modeling.ImplicitAttributes;
|
||||
|
||||
public class TextAttribute
|
||||
{
|
||||
private OmsDatabase omsdb;
|
||||
public TextAttribute(OmsDatabase omsdb)
|
||||
{
|
||||
this.omsdb = omsdb;
|
||||
}
|
||||
|
||||
private InstanceHandle sourceInstance;
|
||||
private InstanceHandle attributeInstance;
|
||||
|
||||
private string GetAttributeValueStr()
|
||||
{
|
||||
return omsdb.Oms.GetAttributeValue<string>(sourceInstance, attributeInstance);
|
||||
}
|
||||
|
||||
public static implicit operator string(TextAttribute source)
|
||||
{
|
||||
return source.GetAttributeValueStr();
|
||||
}
|
||||
public static implicit operator TextAttribute(string source)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user