internal static void SetPropertyInternal(this IMixin self, string name, object value) { self.GetInternalState()[name] = value; }
internal static object GetPropertyInternal(this IMixin self, string name) { object value; return(self.GetInternalState().TryGetValue(name, out value) ? value : Value.Undefined); }
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)); }