Files
MicrosoftIris/UIX/Microsoft/Iris/Markup/PropertySchema.cs
T

51 lines
1.5 KiB
C#
Raw Normal View History

2022-03-03 08:14:05 -06:00
// Decompiled with JetBrains decompiler
// Type: Microsoft.Iris.Markup.PropertySchema
// Assembly: UIX, Version=4.8.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
// MVID: A56C6C9D-B7F6-46A9-8BDE-B3D9B8D60B11
// Assembly location: C:\Program Files\Zune\UIX.dll
using Microsoft.Iris.Library;
namespace Microsoft.Iris.Markup
{
2022-10-07 10:29:09 -05:00
public abstract class PropertySchema : DisposableObject
2022-03-03 08:14:05 -06:00
{
2023-05-26 00:00:51 -05:00
public readonly static PropertySchema[] EmptyList = System.Array.Empty<PropertySchema>();
private readonly TypeSchema _owner;
2022-03-03 08:14:05 -06:00
public PropertySchema(TypeSchema owner)
{
_owner = owner;
DeclareOwner(owner);
}
public TypeSchema Owner => _owner;
public abstract string Name { get; }
public abstract TypeSchema PropertyType { get; }
public abstract TypeSchema AlternateType { get; }
public abstract bool CanRead { get; }
public abstract bool CanWrite { get; }
public abstract bool IsStatic { get; }
public abstract ExpressionRestriction ExpressionRestriction { get; }
public abstract bool RequiredForCreation { get; }
public abstract RangeValidator RangeValidator { get; }
public abstract bool NotifiesOnChange { get; }
public abstract object GetValue(object instance);
public abstract void SetValue(ref object instance, object value);
2023-05-26 00:00:51 -05:00
public override string ToString() => $"{Owner.Name}.{Name}";
2022-03-03 08:14:05 -06:00
}
}