SimpleFramework.Xml.Util.ConverterFactory.GetConstructor C# (CSharp) Method

GetConstructor() public method

This is used to acquire the default no argument constructor for the the provided type. If the constructor is not accessible then it will be made accessible so that it can be instantiated.
public GetConstructor ( Class type ) : Constructor
type Class /// this is the type to acquire the constructor for ///
return Constructor
      public Constructor GetConstructor(Class type) {
         Constructor factory = type.getDeclaredConstructor();
         if(!factory.isAccessible()) {
            factory.setAccessible(true);
         }
         return factory;
      }
   }