msgid ""
"Cannot convert anonymous method block without a parameter list to delegate "
#, csharp-format
msgid "`{0}' is already listed in interface list"
#, csharp-format
msgid "Type `{0}' in interface list is not an interface"
#: mcs/mcs/expression.cs:7139
msgid "The __arglist construct is valid only within a variable argument method"
msgid ""
"The class type constraint `{0}' must be listed before any other constraints. "
"Consider moving type constraint to the beginning of the constraint list"
msgstr ""
#: mcs/mcs/iterators.cs:1120
msgid "__arglist is not allowed in parameter list of iterators"
#: mcs/mcs/statement.cs:3124
msgid "__arglist is not allowed in parameter list of async methods"
* Dietmar Maurer (dietmar@ximian.com)
* Mono Team (mono-list@lists.ximian.com)
/*
* Search location list if available, it contains the precise location of the
static MonoArray *
glist_to_array (GList *list, MonoClass *eclass)
if (!list)
len = g_list_length (list);
for (i = 0; list; list = list->next, i++)
mono_array_set (res, gpointer, i, list->data);
MonoArray *initial_trace_ips = NULL;
GList *trace_ips = NULL;
/*
* Pull the list of opcodes
* The Dice paper describes a technique for saving lock record space
* by returning records to a free list when they become unused. That
/* The monitors on the freelist don't have weak links - mark them */
for (mon = monitor_freelist; mon; mon = mon->data)
mon->wait_list = (gpointer)-1;
mon = &marray->monitors [i];
if (mon->wait_list != (gpointer)-1)
static int
monitor_is_on_freelist (MonoThreadsSync *mon)
* Print a report on stdout of the managed locks currently held by
* threads. If @include_untaken is specified, list also inflated locks
MONO_MT_BLOB_IDX, /* "Signature" }, */
MONO_MT_TABLE_IDX, /* "ParamList:Param" }, */
MONO_MT_TABLE_IDX, /* "Parent:TypeDef" }, */
MONO_MT_TABLE_IDX, /* "PropertyList:Property" }, */
* Method, Field, Param and Event tables when the access is made from metadata, i.e.
* IDX is retrieved from a metadata table, like MONO_TYPEDEF_FIELD_LIST.
MonoTableInfo *methodt = &m->tables [MONO_TABLE_METHOD];
guint lastp, i, param_index = mono_metadata_decode_row_col (methodt, def - 1, MONO_METHOD_PARAMLIST);
if (def < methodt->rows)
lastp = mono_metadata_decode_row_col (methodt, def, MONO_METHOD_PARAMLIST);
guint32 cols [MONO_PARAM_SIZE];
guint lastp, i, param_index = mono_metadata_decode_row_col (methodt, def - 1, MONO_METHOD_PARAMLIST);
MonoImageSet *set;
GSList *l;
/*
* Structure used by the collect_..._images functions to store the image list.
case METHOD_ATTRIBUTE_ASSEM:
return (start_klass || mono_defaults.generic_ilist_class);
if ((klass != NULL) && klass->exception_type) {
/* keep the class in the list */
list = g_list_append (list, klass);
/* and replace Type with NULL */
if (list || ex_count) {
GList *tmp = NULL;
MonoException *exc = NULL;
MonoArray *exl = NULL;
int j, length = g_list_length (list) + ex_count;
/* Types for which mono_class_get () succeeded */
for (i = 0, tmp = list; tmp; i++, tmp = tmp->next) {
ICALL_EXPORT void
ves_icall_System_Diagnostics_DefaultTraceListener_WriteWindowsDebugString (MonoString *message)
{ ERROR_HANDLE_DISK_FULL, "Handle disk full" },
{ ERROR_REM_NOT_LIST, "Rem not list" },
{ ERROR_INVALID_EA_NAME, "Invalid EA name" },
{ ERROR_EA_LIST_INCONSISTENT, "EA list inconsistent" },
{ ERROR_PIPE_CONNECTED, "Pipe connected" },
{ ERROR_PIPE_LISTENING, "Pipe listening" },
{ RPC_S_TYPE_ALREADY_REGISTERED, "RPC S Type already registered" },
{ RPC_S_ALREADY_LISTENING, "RPC S Already listening" },
{ RPC_S_NO_PROTSEQS_REGISTERED, "RPC S Not protseqs registered" },
{ ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED, "Cluster no RPC packages registered" },
{ ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST, "Cluster owner not in preflist" },
{ DNS_ERROR_DP_ALREADY_EXISTS, "DNS error dp already exists" },
{ DNS_ERROR_DP_NOT_ENLISTED, "DNS error dp not enlisted" },
{ DNS_ERROR_DP_ALREADY_ENLISTED, "DNS error dp already enlisted" },
{ WSA_QOS_RECEIVERS, "QOS receivers" },
public class DbProviderCollection : MarshalByRefObject, IList, ICollection, IEnumerable
ArrayList list = new ArrayList ();
get {
return (DbProvider) list[index];
DbProvider p = null;
foreach(object o in list) {
object IList.this[int index] {
get {
return list[index];
set {
list[index] = value;
{
list.Insert (index, (DbProvider) o);
protected SortedList list;
this.list = new SortedList ();
if (host!=null) {
return (++pos) < host.list.Count;
public abstract class AbstractTypeCollection : SortedList {
protected delegate bool Comparer (AssemblyStuff asm1, AssemblyStuff asm2);
private static ArrayList comparers;
{
comparers = new ArrayList ();
private ArrayList consumers;
{
consumers = new ArrayList ();
protected MemberCache cache;
protected IList<TypeSpec> ifaces;
//
// Returns true for instances of IList<T>, IEnumerable<T>, ICollection<T>
{
IList<TypeSpec> targs = TypeSpec.EmptyTypes;
} else {
var list = targs as List<TypeSpec> ?? new List<TypeSpec> (targs);
list.AddRange (type.TypeArguments);
targs = list;
}
return targs as TypeSpec[] ?? ((List<TypeSpec>) targs).ToArray ();
public override List<TypeSpec> ResolveMissingDependencies ()
{
//var startup_files = new List<string> ();
// These are errors: we list explicitly what we had
var base_class_imported = importer.ImportType (base_class);
var baseclass_list = new List<FullNamedExpression> (1) {
host.AddBasesForPart (baseclass_list);
// TODO:
//foreach (object x in ns.using_alias_list)
{
var res = new List<string> ();
lock (evaluator_lock){
return new List<string> (fields.Keys).ToArray ();
/// <summary>
/// Returns a list of available static methods.
//
// From a one-dimensional array-type S[] to System.Collections.IList<T> and base
//
static bool ArrayToIList (ArrayContainer array, TypeSpec list, bool isExplicit)
{
if (array.Rank != 1 || !list.IsGenericIterateInterface)
var arg_type = list.TypeArguments[0];
//
// Reject conversion from T[] to IList<U> even if T has U dependency
static bool IList_To_Array(TypeSpec list, ArrayContainer array)
{
// from an array-type of type T to IList<T>
if (ArrayToIList (expr_type_array, target_type, false))
return true;
#if STATIC
using SecurityType = System.Collections.Generic.List<IKVM.Reflection.Emit.CustomAttributeBuilder>;
// When the same attribute is attached to multiple fiels
// we use @target field as a list of targets. The attribute
named_values = new List<KeyValuePair<MemberExpr, NamedArgument>> (named_arg_count);
/// </summary>
public void Emit (Dictionary<Attribute, List<Attribute>> allEmitted)
if (a == null) {
a = new List<Attribute> (2);
{
Attrs = new List<Attribute> ();
public void AddAttributes (List<Attribute> attrs)
{
var al = new List<Attribute> (Attrs.Count);
private AppDomain ad;
private ArrayList files = new ArrayList ();
true,
new List<CustomAttributeBuilder> ());
true,
new List<CustomAttributeBuilder> ());
{
List<CustomAttributeBuilder> cattrs;
cattrs = new List<CustomAttributeBuilder> ();
(AssemblyBuilderAccess) 666,
new List<CustomAttributeBuilder> ());
(AssemblyBuilderAccess) 666,
new List<CustomAttributeBuilder> ());
AssemblyBuilderAccess.Run,
new List<CustomAttributeBuilder> ());
public void SignatureTest (__arglist)
MethodHandleTest<int> test = new MethodHandleTest<int> ();
RuntimeMethodHandle mh = test.GetType ().GetProperty ("MyList")
Assert.IsNotNull (mb, "#1");
List<int> list = (List<int>) mb.Invoke (test, null);
Assert.IsNotNull (list, "#2");
Assert.AreEqual (1, list.Count, "#3");
}
{
MethodInfo mi1 = typeof (MyList<>).GetMethod ("ConvertAll");
MethodInfo mi2 = typeof (MyList<int>).GetMethod ("ConvertAll");
{
MethodInfo gmd = (typeof (MyList <int>)).GetMethod ("ConvertAll");
// ArrayListTest.cs - NUnit Test Cases for the System.Collections.ArrayList class
//
[TestFixture]
public class ArrayListTest
{
ArrayList al1 = new ArrayList ();
Assert.IsNotNull (al1, "no basic ArrayList");
}
try {
ArrayList a = new ArrayList (null);
char [] coll = { 'a', 'b', 'c', 'd' };
ArrayList al1 = new ArrayList (coll);
Assert.IsNotNull (al1, "no icollection ArrayList");
for (int i = 0; i < coll.Length; i++) {
Char [,] c1 = new Char [2, 2];
ArrayList al1 = new ArrayList (c1);
{
Dictionary<object, object> d = new Dictionary <object, object> ();
Dictionary <object, object> dictionary = new Dictionary <object, object> ();
object o = itr.Current;
Assert.AreEqual (typeof (KeyValuePair<string,object>), o.GetType (), "Current should return a type of KeyValuePair");
KeyValuePair<string,object> entry = (KeyValuePair<string,object>) itr.Current;
}
_dictionary.Add ("key4", "value4");
IEnumerator <KeyValuePair <string, object>> itr = ((IEnumerable <KeyValuePair <string, object>>)_dictionary).GetEnumerator ();
object o = itr.Current;
Assert.AreEqual (typeof (KeyValuePair <string, object>), o.GetType (), "Current should return a type of KeyValuePair<object,string>");
KeyValuePair <string, object> entry = (KeyValuePair <string, object>)itr.Current;
}
int i = 0;
foreach (KeyValuePair <string, object> entry in _dictionary)
var stringList = new List<string> ();
len += sr.Length;
stringList.Add (sr);
}
return ConcatInternal (stringList.ToArray (), len);
var stringList = new List<string> ();
foreach (var v in values)
stringList.Add (v);
return JoinUnchecked (separator, stringList.ToArray (), 0, stringList.Count);
var stringList = new List<string> ();
foreach (var v in values)
while (min <= max) {
Timer t = (Timer) list.GetByIndex (min);
int half = min + ((max - min) >> 1);
Timer t = (Timer) list.GetByIndex (half);
// This should be the only caller to list.Add!
// Make sure there are no collisions (10000 ticks == 1ms, so we should be safe here)
// Do not use list.IndexOfKey here. See bug #648130
if (idx >= list.Count)
break;
Timer t2 = (Timer) list.GetByIndex (idx);
}
list.Add (timer, timer);
//PrintList ();
//
// System.Collections.SortedList.cs
[DebuggerTypeProxy (typeof (CollectionDebuggerView))]
public class SortedList : IDictionary, ICollection,
get {
return new ListKeys (this);
get {
return new ListValues (this);
if (IsReadOnly)
throw new NotSupportedException("SortedList is Read Only.");
if (Find(key) < 0 && IsFixedSize)
throw new NotSupportedException("Key not found and SortedList is fixed size.");
{
SortedList sl = new SortedList (this, comparer);
public virtual IList GetKeyList ()
bool propertyChanged = false;
List<string> changedProps = new List<string> ();
bool propertyChanged = false;
List<string> changedProps = new List<string> ();
bool propertyChanged = false;
List<string> changedProps = new List<string> ();
bool propertyChanged = false;
List<string> changedProps = new List<string> ();
{
List<char> initial = new List<char> ();
bool propertyChanged = false;
List<string> changedProps = new List<string> ();