示例#1
0
        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);
            }
        }
示例#2
0
 internal AltTypeFormatEntryPair(string typeName,
                                 ViewDefinitionInfo viewDefinitionInfo)
 {
     TypeName           = typeName;
     ViewDefinitionInfo = viewDefinitionInfo;
 }