Пример #1
0
        static string ToString(DecompilationObject o)
        {
            switch (o)
            {
            case DecompilationObject.NestedTypes:   return(dnSpy_Decompiler_ILSpy_Resources.DecompilationOrder_NestedTypes);

            case DecompilationObject.Fields:                return(dnSpy_Decompiler_ILSpy_Resources.DecompilationOrder_Fields);

            case DecompilationObject.Events:                return(dnSpy_Decompiler_ILSpy_Resources.DecompilationOrder_Events);

            case DecompilationObject.Properties:    return(dnSpy_Decompiler_ILSpy_Resources.DecompilationOrder_Properties);

            case DecompilationObject.Methods:               return(dnSpy_Decompiler_ILSpy_Resources.DecompilationOrder_Methods);

            default:
                Debug.Fail("Shouldn't be here");
                return("???");
            }
        }
Пример #2
0
        void SetDecompilationObject(int index, DecompilationObject newValue)
        {
            if (decompilationObjects[index] == newValue)
            {
                return;
            }

            int otherIndex = Array.IndexOf(decompilationObjects, newValue);

            Debug.Assert(otherIndex >= 0);
            if (otherIndex >= 0)
            {
                decompilationObjects[otherIndex] = decompilationObjects[index];
                decompilationObjects[index]      = newValue;

                OnPropertyChanged(string.Format("DecompilationObject{0}", otherIndex));
            }
            OnPropertyChanged(string.Format("DecompilationObject{0}", index));
        }
Пример #3
0
        static string GetMemberOrderString(DecompilationObject d)
        {
            switch (d)
            {
            case DecompilationObject.NestedTypes:   return("t");

            case DecompilationObject.Fields:                return("f");

            case DecompilationObject.Events:                return("e");

            case DecompilationObject.Properties:    return("p");

            case DecompilationObject.Methods:               return("m");

            default:
                Debug.Fail("Shouldn't be here");
                return("?");
            }
        }
Пример #4
0
 public DecompilationObjectVM(DecompilationObject decompilationObject, string text)
 {
     Object = decompilationObject;
     Text   = text;
 }
Пример #5
0
 public DecompilationObjectVM(DecompilationObject decompilationObject, string text)
 {
     this.Object = decompilationObject;
     this.Text   = text;
 }
		static string GetMemberOrderString(DecompilationObject d) {
			switch (d) {
			case DecompilationObject.NestedTypes:	return "t";
			case DecompilationObject.Fields:		return "f";
			case DecompilationObject.Events:		return "e";
			case DecompilationObject.Properties:	return "p";
			case DecompilationObject.Methods:		return "m";
			default:
				Debug.Fail("Shouldn't be here");
				return "?";
			}
		}
		public DecompilationObjectVM(DecompilationObject decompilationObject, string text) {
			Object = decompilationObject;
			Text = text;
		}
		static string ToString(DecompilationObject o) {
			switch (o) {
			case DecompilationObject.NestedTypes:	return dnSpy_Decompiler_ILSpy_Resources.DecompilationOrder_NestedTypes;
			case DecompilationObject.Fields:		return dnSpy_Decompiler_ILSpy_Resources.DecompilationOrder_Fields;
			case DecompilationObject.Events:		return dnSpy_Decompiler_ILSpy_Resources.DecompilationOrder_Events;
			case DecompilationObject.Properties:	return dnSpy_Decompiler_ILSpy_Resources.DecompilationOrder_Properties;
			case DecompilationObject.Methods:		return dnSpy_Decompiler_ILSpy_Resources.DecompilationOrder_Methods;
			default:
				Debug.Fail("Shouldn't be here");
				return "???";
			}
		}
		public DecompilationObjectVM(DecompilationObject decompilationObject, string text) {
			this.decompilationObject = decompilationObject;
			this.text = text;
		}