Esempio n. 1
0
        /// <summary>
        /// Retrieve an Assembly Linked Resource from the object
        /// </summary>
        /// <param name="item">the object</param>
        /// <returns>The matching A.L. Resource</returns>
        public override AssemblyLinkedResource GetAssemblyLinkedResource(object item)
        {
            IResource res = item as IResource;

            return((AssemblyLinkedResource)ReflectorHelper.ReflectorResourceToCecilResource(res));
        }
Esempio n. 2
0
        /// <summary>
        /// Retrieve an Embedded Resource from the object
        /// </summary>
        /// <param name="item">the object</param>
        /// <returns>The matching Embedded Resource</returns>
        public override EmbeddedResource GetEmbeddedResource(object item)
        {
            IResource res = item as IResource;

            return((EmbeddedResource)ReflectorHelper.ReflectorResourceToCecilResource(res));
        }
Esempio n. 3
0
        /// <summary>
        /// Retrieve a Linked Resource from the object
        /// </summary>
        /// <param name="item">the object</param>
        /// <returns>The matching Linked Resource</returns>
        public override LinkedResource GetLinkedResource(object item)
        {
            var res = item as IResource;

            return((LinkedResource)ReflectorHelper.ReflectorResourceToCecilResource(res));
        }