示例#1
0
 public FLifetimeProperty(ushort repIndex, ELifetimeCondition condition, ELifetimeRepNotifyCondition repNotifyCondition)
 {
     Debug.Assert(repIndex < 65535);
     RepIndex           = repIndex;
     Condition          = condition;
     RepNotifyCondition = repNotifyCondition;
 }
示例#2
0
        public void Add(string propertyName, ELifetimeCondition condition = ELifetimeCondition.None, ELifetimeRepNotifyCondition repNotifyCondition = ELifetimeRepNotifyCondition.OnChanged)
        {
            IntPtr property = FindProperty(propertyName);
            int    arrayDim = Native_UProperty.Get_ArrayDim(property);
            ushort repIndex = Native_UProperty.Get_RepIndex(property);

            for (ushort i = 0; i < arrayDim; i++)
            {
                dest.Add(new FLifetimeProperty((ushort)(repIndex + i), condition, repNotifyCondition));
            }
        }