Exemplo n.º 1
0
        public RadPropertyMetadata Copy(RadProperty dp)
        {
            RadPropertyMetadata instance = this.CreateInstance();

            instance.InvokeMerge(this, dp);
            return(instance);
        }
Exemplo n.º 2
0
        private void ProcessOverrideMetadata(Type forType, RadPropertyMetadata typeMetadata, RadObjectType dType, RadPropertyMetadata baseMetadata)
        {
            lock (RadProperty.Synchronized)
            {
                if (RadProperty.UnsetValue == this._metadataMap[dType.Id])
                {
                    this._metadataMap[dType.Id] = typeMetadata;
                }
                else
                {
                    object[] objArray1 = new object[] { forType.Name };
                    throw new ArgumentException(string.Format("TypeMetadataAlreadyRegistered {0}", objArray1));
                }
            }

            typeMetadata.InvokeMerge(baseMetadata, this);
            typeMetadata.Seal(this, forType);
        }
Exemplo n.º 3
0
 internal RadPropertyMetadata Copy(RadProperty dp)
 {
     RadPropertyMetadata metadata1 = this.CreateInstance();
     metadata1.InvokeMerge(this, dp);
     return metadata1;
 }