~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to cs/src/Ice/DictionaryBase.cs

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// **********************************************************************
2
2
//
3
 
// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
 
3
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
4
4
//
5
5
// This copy of Ice is licensed to you under the terms described in the
6
6
// ICE_LICENSE file included in this distribution.
42
42
            }
43
43
            if(index < 0)
44
44
            {
45
 
                throw new ArgumentException("index", "Array index cannot be less than zero");
 
45
                throw new ArgumentException("Array index cannot be less than zero", "index");
46
46
            }
47
47
            if(index >= a__.Length)
48
48
            {
54
54
            }
55
55
            if(a__.Rank > 1)
56
56
            {
57
 
                throw new ArgumentException("a__", "Cannot copy to multidimensional array");
 
57
                throw new ArgumentException("Cannot copy to multidimensional array", "a__");
58
58
            }
59
59
            Type t = a__.GetType().GetElementType();
60
60
            if(!t.IsAssignableFrom(typeof(System.Collections.DictionaryEntry)))
61
61
            {
62
 
                throw new ArgumentException("a__", "Cannot assign DictionaryEntry to target array");
 
62
                throw new ArgumentException("Cannot assign DictionaryEntry to target array", "a__");
63
63
            }
64
64
 
65
65
            IEnumerator<KeyValuePair<KT, VT>> e = dict_.GetEnumerator();