I have this generic method:
public Guid Save<T>(T obj)
    {
        Guid newId = Guid.NewGuid();
        try
        {
            foreach (MethodInfo method in (typeof(T)).GetMethods())
            {
                if (IsXmlElement(method))
                {
                    // A way to get this method's value
                    // e.g. if T has method GetName, and GetName was assigned 'John' 
                    //i.e. object.GetName = 'John'Is there a way to get 'John' from this GetName method?
                }
            }
Then, I have an object, myObject.Name = 'John'... and myObject was passed to save method thus: Save(myObject); Is there any way I can get the value 'John' inside the Save method?
Any suggestion would be appreciated. Thanks.
 
     
     
     
     
    