~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/TypeMirror.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
                TypeMirror[] ifaces;
27
27
                Dictionary<TypeMirror, InterfaceMappingMirror> iface_map;
28
28
                TypeMirror[] type_args;
 
29
                bool inited;
29
30
 
30
31
                internal const BindingFlags DefaultBindingFlags =
31
32
                BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance;
354
355
                                        switch (Name) {
355
356
                                        case "Byte":
356
357
                                                return "byte";
 
358
                                        case "Sbyte":
 
359
                                                return "sbyte";
 
360
                                        case "Char":
 
361
                                                return "char";
 
362
                                        case "UInt16":
 
363
                                                return "ushort";
 
364
                                        case "Int16":
 
365
                                                return "short";
 
366
                                        case "UInt32":
 
367
                                                return "uint";
357
368
                                        case "Int32":
358
369
                                                return "int";
 
370
                                        case "UInt64":
 
371
                                                return "ulong";
 
372
                                        case "Int64":
 
373
                                                return "long";
 
374
                                        case "Single":
 
375
                                                return "float";
 
376
                                        case "Double":
 
377
                                                return "double";
359
378
                                        case "Boolean":
360
379
                                                return "bool";
361
380
                                        default:
366
385
                                if (Namespace == "System") {
367
386
                                        string s = Name;
368
387
                                        switch (s) {
 
388
                                        case "Decimal":
 
389
                                                return "decimal";
 
390
                                        case "Object":
 
391
                                                return "object";
369
392
                                        case "String":
370
393
                                                return "string";
371
394
                                        default:
821
844
                        return res;
822
845
                }
823
846
 
 
847
                // Return whenever the type initializer of this type has ran
 
848
                // Since protocol version 2.23
 
849
                public bool IsInitialized {
 
850
                        get {
 
851
                                vm.CheckProtocolVersion (2, 23);
 
852
                                if (!inited)
 
853
                                        inited = vm.conn.Type_IsInitialized (id);
 
854
                                return inited;
 
855
                        }
 
856
                }
824
857
    }
825
858
}