Ejemplo n.º 1
0
        public override void SetValue(object component, object value)
        {
            TextResource item = component as TextResource;

            if (item != null)
            {
                item[indexer] = value as String;
            }
        }
Ejemplo n.º 2
0
        public override object GetValue(object component)
        {
            TextResource item = component as TextResource;

            if (item != null)
            {
                return(item[indexer]);
            }
            throw new InvalidOperationException("Expected object of type TextResource");
        }