0

i am using the following code as

 [DisplayOrder]  
public static void ss()
{
    Console.WriteLine("ss");

 }

i am using following code for getting method name as

 foreach (MethodInfo targetMethod in type.GetMethods(BindingFlags.Static | BindingFlags.InvokeMethod | BindingFlags.Default | BindingFlags.CreateInstance | BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly | BindingFlags.SuppressChangeType | BindingFlags.ExactBinding | BindingFlags.FlattenHierarchy | BindingFlags.GetField | BindingFlags.GetProperty ))
            {
                Console.WriteLine("=== " + targetMethod.Name);


                {
                    instances.Add(new AspectInstance(targetMethod, aspectToApply));
                }

            }
            foreach (Type nestedType in type.GetNestedTypes())
            {
                ProcessType(nestedType, instances);
            }
        }

the name of method comes and executes well

i do not know how to get the tag name as " [DisplayOrder] " .

got stuck here

do not know how to proceed

1

1 Answer 1

2

See http://msdn.microsoft.com/en-us/library/z919e8tw(v=vs.80).aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.