Okay...think I get at what you're asking. As long as it takes the same thread of banjo bolt (the hollow bolt that goes through the end of the brake line, the one that you are holding your hand in the picture) It'll hook up okay. Make sure to use new washers around the banjo bolt.
Also, if you're going to go with an aftermarket master cylinder, try to pay attention to if it's recommended for a single or dual disc brake setup; It can make a difference on how the brake lever "feels" as you pull it (too grabby, not grabby enough etc etc). Hope this helps.