示例#1
0
 internal static void SetPropertyInternal(this IMixin self, string name, object value)
 {
     self.GetInternalState()[name] = value;
 }
示例#2
0
        internal static object GetPropertyInternal(this IMixin self, string name)
        {
            object value;

            return(self.GetInternalState().TryGetValue(name, out value) ? value : Value.Undefined);
        }
示例#3
0
 internal static Dictionary <string, object> GetPublicState(this IMixin self)
 {
     return(self.GetInternalState()
            .Where(c => !c.Key.StartsWith(SystemFields.Prefix) && c.Key != SystemFields.IsChanged)
            .ToDictionary(c => c.Key, c => c.Value));
 }