Beispiel #1
0
        protected override ImageReference GetIcon(IDotNetImageManager dnImgMgr)
        {
            var td = TryGetTypeDef();

            if (td != null)
            {
                return(dnImgMgr.GetImageReference(td));
            }
            return(new ImageReference(GetType().Assembly, isBaseType ? "Class" : "Interface"));
        }
Beispiel #2
0
 protected override ImageReference GetIcon(IDotNetImageManager dnImgMgr) => dnImgMgr.GetImageReference(analyzedField);
Beispiel #3
0
		protected override ImageReference GetIcon(IDotNetImageManager dnImgMgr) {
			return dnImgMgr.GetImageReference(analyzedField);
		}
Beispiel #4
0
 protected override ImageReference GetIcon(IDotNetImageManager dnImgMgr) => dnImgMgr.GetImageReference(DnSpyFile.PEImage);
Beispiel #5
0
 protected override ImageReference GetIcon(IDotNetImageManager dnImgMgr) => dnImgMgr.GetImageReference(EventDef);
Beispiel #6
0
 protected override ImageReference GetIcon(IDotNetImageManager dnImgMgr)
 {
     return(dnImgMgr.GetImageReference(analyzedEvent));
 }
Beispiel #7
0
        ImageReference?TryGetImageReference(object @ref)
        {
            var td = @ref as TypeDef;

            if (td != null)
            {
                return(dotNetImageManager.GetImageReference(td));
            }

            var md = @ref as MethodDef;

            if (md != null)
            {
                return(dotNetImageManager.GetImageReference(md));
            }

            var pd = @ref as PropertyDef;

            if (pd != null)
            {
                return(dotNetImageManager.GetImageReference(pd));
            }

            var ed = @ref as EventDef;

            if (ed != null)
            {
                return(dotNetImageManager.GetImageReference(ed));
            }

            var fd = @ref as FieldDef;

            if (fd != null)
            {
                return(dotNetImageManager.GetImageReference(fd));
            }

            if (@ref is NamespaceReference)
            {
                return(dotNetImageManager.GetNamespaceImageReference());
            }

            if (@ref is GenericParam)
            {
                return(dotNetImageManager.GetImageReferenceGenericParameter());
            }
            if (@ref is Local)
            {
                return(dotNetImageManager.GetImageReferenceLocal());
            }
            if (@ref is Parameter)
            {
                return(dotNetImageManager.GetImageReferenceParameter());
            }
            if (@ref is IType)
            {
                return(dotNetImageManager.GetImageReferenceType());
            }
            if (@ref is IMethod && ((IMethod)@ref).IsMethod)
            {
                return(dotNetImageManager.GetImageReferenceMethod());
            }
            if (@ref is IField && ((IField)@ref).IsField)
            {
                return(dotNetImageManager.GetImageReferenceField());
            }

            return(null);
        }
Beispiel #8
0
		protected override ImageReference GetIcon(IDotNetImageManager dnImgMgr) {
			return dnImgMgr.GetImageReference(DnSpyFile.PEImage);
		}
Beispiel #9
0
 protected override ImageReference GetIcon(IDotNetImageManager dnImgMgr)
 {
     var td = TryGetTypeDef();
     if (td != null)
         return dnImgMgr.GetImageReference(td);
     return new ImageReference(GetType().Assembly, "Class");
 }
Beispiel #10
0
 protected override ImageReference GetIcon(IDotNetImageManager dnImgMgr)
 {
     return(dnImgMgr.GetImageReference(property));
 }
Beispiel #11
0
 protected override ImageReference GetIcon(IDotNetImageManager dnImgMgr)
 {
     return dnImgMgr.GetImageReference(property);
 }
Beispiel #12
0
 protected override ImageReference GetIcon(IDotNetImageManager dnImgMgr)
 {
     return(dnImgMgr.GetImageReference(DnSpyFile.AssemblyDef));
 }
Beispiel #13
0
 protected override ImageReference GetIcon(IDotNetImageManager dnImgMgr) => dnImgMgr.GetImageReference(module);