Check this method in your constructor class. this will give you parent class type.
Type callingClass = new System.Diagnostics.StackFrame(1).GetMethod().DeclaringType;
استفاده از مطالب سایت با ذکر منبع آزاد است