private static INodeField ValueDisplay(ITypeDefinition typeDef, object x) { INodeField output = Constructor.NodeField(x.ToString()).WithValue <INodeField>("Displayed", Constructor.RigidTypeDefinitionManager(typeDef.DefaultValue, null, "DefaultDisplay"), false); output.DisplayedValue.Value = x; output.SetFlowOutput(); return(output); }