public static TFormatInfo ChooseFormatInfoForPSObject <TFormatInfo>(PSObject outputObject) where TFormatInfo : class { ViewDefinitionInfo vdi = ChooseFormatInfoForPSObjectFromRegistered(outputObject, typeof(TFormatInfo)); if (null != vdi) { return((TFormatInfo)vdi.ViewDefinition); } else { return(null); } }
internal AltTypeFormatEntryPair(string typeName, ViewDefinitionInfo viewDefinitionInfo) { TypeName = typeName; ViewDefinitionInfo = viewDefinitionInfo; }