Message in Norwegian (Bokmal) (Norsk (Bokmål))
Array.ConstrainedCopy vil bare fungere for matrisetyper som beviselig er kompatible, uten noen form for "boxing", "unboxing", utvidelse eller bruk av hvert matriseelement. Endre matrisetypene (det vil si, kopier en Derived[] til en Base[]) eller bruk en mildningsstrategi i CER for den svakere stabilitetskontrakten i Array.Copy ved for eksempel å klone matrisen eller fjerne den potensielt ødelagte målmatrisen.
Unlocalized message
Array.ConstrainedCopy will only work on array types that are provably compatible, without any form of boxing, unboxing, widening, or casting of each array element. Change the array types (i.e., copy a Derived[] to a Base[]), or use a mitigation strategy in the CER for Array.Copy's less powerful reliability contract, such as cloning the array or throwing away the potentially corrupt destination array.
Search by Google