Example #1
0
        public static void      InspectProperty(AssemblyUsages result, PropertyDefinition propertyDef)
        {
            if (AssemblyUsagesExtractor.debug > 1)
            {
                AssemblyUsagesExtractor.Log("Property {0}", propertyDef);
            }

            using (AutoIndent.Instance)
            {
                result.RegisterTypeRef(propertyDef.PropertyType);
                AssemblyUsagesExtractor.InspectAttributes(result, propertyDef);
                AssemblyUsagesExtractor.InspectIndexer(result, propertyDef);

                if (propertyDef.GetMethod != null)
                {
                    AssemblyUsagesExtractor.InspectMethod(result, propertyDef.GetMethod);
                }

                if (propertyDef.SetMethod != null)
                {
                    AssemblyUsagesExtractor.InspectMethod(result, propertyDef.SetMethod);
                }
            }
        }