Patcher.Rules.Proxies.ProxyFeatureFactory.UpdateFromObjectBoundsProxy C# (CSharp) Method

UpdateFromObjectBoundsProxy() public static method

public static UpdateFromObjectBoundsProxy ( this target, IObjectBounds value ) : void
target this
value IObjectBounds
return void
        public static void UpdateFromObjectBoundsProxy(this IFeaturingObjectBounds target, IObjectBounds value)
        {
            if (value == null)
                throw new ArgumentNullException("value", "Cannot assign a NULL to object bounds.");

            // Assign copy of bounds of another record
            target.ObjectBounds = (ObjectBounds)((ObjectBoundsProxy)value).Record.ObjectBounds.CopyField();
        }