예제 #1
0
        public OverlayTypeDefinition(IWeakTypeDefinition backing, Overlay overlay)
        {
            if (overlay == null)
            {
                throw new ArgumentNullException(nameof(overlay));
            }

            this.backing = backing ?? throw new ArgumentNullException(nameof(backing));
            Scope        = new OverlayedScope(backing.Scope, overlay);
        }
예제 #2
0
 public OverlayGenericTypeDefinition(IWeakGenericTypeDefinition backing, Overlay overlay)
 {
     this.backing = backing ?? throw new ArgumentNullException(nameof(backing));
     Scope        = new OverlayedScope(backing.Scope, overlay);
 }