{"id":11831,"date":"2016-04-22T09:56:37","date_gmt":"2016-04-22T16:56:37","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=11831"},"modified":"2016-04-23T14:47:39","modified_gmt":"2016-04-23T21:47:39","slug":"calling-a-method-without-parentheses","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/","title":{"rendered":"Calling a method without parentheses"},"content":{"rendered":"<p><strong>Late breaking news from PowerShell Conference Europe 2016!!<\/strong><\/p>\n<p>During PowerShell MVP Chrissy LeMaire&#8217;s (<a href=\"http:\/\/www.twitter.com\/cl\" target=\"_blank\">@cl<\/a>) knockout session at PowerShell Conference Europe 2016, &#8220;My Journey to 200,000 Rows a Second&#8221; (don&#8217;t miss the recording; I&#8217;ll tweet as soon as it&#8217;s available), PowerShell Principal Developer Bruce Payette (<a href=\"https:\/\/twitter.com\/BrucePayette\" target=\"_blank\">@BrucePayette<\/a>) said that you can call the Where method without parentheses.<\/p>\n<div id=\"attachment_11844\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/04\/20160422_185053.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-11844\" class=\"wp-image-11844 size-medium\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/04\/20160422_185053-300x169.jpg\" alt=\"Chrissy LeMaire and Bruce Payette at PowerShell Conference Europe.\" width=\"300\" height=\"169\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2016\/04\/20160422_185053-300x169.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2016\/04\/20160422_185053-768x432.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2016\/04\/20160422_185053-1024x576.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-11844\" class=\"wp-caption-text\">Chrissy LeMaire and Bruce Payette at PowerShell Conference Europe<\/p><\/div>\n<p>&#8220;It&#8217;s a syntactic twiddle,&#8221; he explained, as only Bruce can.<\/p>\n<p>In an exclusive interview, Bruce clarified that, beginning in PowerShell 4.0, you can call ANY method in PowerShell without parentheses if it meets the specified conditions.<\/p>\n<h1>The Old Rules: Parentheses are required<\/h1>\n<p>Prior to PowerShell 4.0, parentheses were required for any method call, even if the method doesn&#8217;t have any arguments, because the PowerShell parser used the parenthesis to identify a method call and distinguish it from a request for a property value.<\/p>\n<p><code>(Get-Process Notepad).Name\u00a0\u00a0 <span style=\"font-family: sans-serif; color: #000; font-weight: bold;\">\u2190 Property<\/span><\/code><\/p>\n<p><code>(Get-Process Notepad).Kill() <span style=\"font-family: sans-serif; color: #000;\"><strong>\u2190 Method<\/strong> (see the trailing parentheses)<\/span><\/code><\/p>\n<h1>The New Rules<\/h1>\n<p>Beginning in PowerShell 4.0, you can call ANY method in PowerShell without parentheses if the method meets the following conditions.<\/p>\n<ul>\n<li>The method takes only one argument<\/li>\n<li>That argument is a scriptblock<\/li>\n<\/ul>\n<p>There&#8217;s no particular advantage to this other than style, but it&#8217;s an interesting stylistic alternative.<\/p>\n<p>This &#8220;syntactic twiddle&#8221; was designed for the Where and ForEach methods, also introduced in PowerShell 4.0. These magic methods are alternatives to the Where-Object and ForEach-Object cmdlets. They&#8217;re faster and have several cool options that make them very valuable. You can read about these new methods <a href=\"http:\/\/www.powershellmagazine.com\/2014\/10\/22\/foreach-and-where-magic-methods\/\" target=\"_blank\">here<\/a> and <a href=\"https:\/\/mcpmag.com\/articles\/2015\/12\/02\/where-method-in-powershell.aspx\" target=\"_blank\">here<\/a>.<\/p>\n<p>For example, here is a typical call to the Where method:<\/p>\n<p><code>$services.Where( {$_.Status -eq 'Running'} )<\/code><\/p>\n<p>But, you can also write it like this &#8212; without the parentheses. Note that there are no spaces between the &#8220;Where&#8221; method name and the first curly brace.<\/p>\n<p><code>$services.Where{$_.Status -eq 'Running'}<\/code><\/p>\n<p>Of course, just because you can doesn&#8217;t mean that you should. I wouldn&#8217;t teach this to beginners, and I probably won&#8217;t use it in shared code, but because it&#8217;s shown in blogs and you might find it in shared code, it&#8217;s important to understand it.<\/p>\n<p>&nbsp;<\/p>\n<h1>In Other News: Why is Out-Null slow?<\/h1>\n<p>Bruce also mentioned that, while piping is always slower than the alternatives&#8230;<\/p>\n<p><code>\"Hello\" | Write-Output<\/code><\/p>\n<p>&#8211; is slower than &#8211;<\/p>\n<p><code>Write-Output -InputObject \"Hello\"<\/code><\/p>\n<p>&#8230; piping to Out-Null should be as quick as redirecting.<\/p>\n<p>However, in Chrissy&#8217;s tests, it was much slower.<\/p>\n<p><code>$(1..1000) &gt; $null\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"font-family: sans-serif; color: #000; font-weight: bold;\">00.21 ms<\/span><\/code><\/p>\n<p><code>$(1..1000) | Out-Null\u00a0\u00a0\u00a0 <span style=\"font-family: sans-serif; color: #000; font-weight: bold;\">76.21 ms<\/span><\/code><\/p>\n<p>&#8220;That&#8217;s a bug,&#8221; Bruce explained. &#8220;Under the covers, these two expressions are identical, so they should perform the same. When Jason optimized the first form, he probably forgot to optimize the second form.&#8221;<\/p>\n<p>You heard it here! Stay tuned for breaking news on the SAPIEN Technologies blog. <span style=\"font-size: 16px;\">\u263a<\/span><\/p>\n<p><em>June Blender is a technology evangelist at SAPIEN Technologies, Inc. and a Windows PowerShell MVP. You can reach her at <\/em><a href=\"mailto:juneb@sapien.com\"><em>juneb@sapien.com <\/em><\/a><em>or follow her on Twitter at <\/em><a href=\"http:\/\/www.twitter.com\/juneb_get_help\" target=\"_blank\"><em>@juneb_get_help<\/em><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Late breaking news from PowerShell Conference Europe 2016!! During PowerShell MVP Chrissy LeMaire&#8217;s (@cl) knockout session at PowerShell Conference Europe 2016, &#8220;My Journey to 200,000 Rows a Second&#8221; (don&#8217;t miss the recording; I&#8217;ll tweet as soon as it&#8217;s available), PowerShell Principal Developer Bruce Payette (@BrucePayette) said that you can call the Where method without parentheses. [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[27,1055,303],"tags":[682,1100,1073,1099],"class_list":["post-11831","post","type-post","status-publish","format-standard","hentry","category-ask-the-experts","category-scripting","category-tip","tag-methods","tag-out-null","tag-powershell-4-0","tag-powershell-conference-europe-2016"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Late breaking news from PowerShell Conference Europe 2016!! During PowerShell MVP Chrissy LeMaire&#039;s (@cl) knockout session at PowerShell Conference Europe 2016, &quot;My Journey to 200,000 Rows a Second&quot; (don&#039;t miss the recording; I&#039;ll tweet as soon as it&#039;s available), PowerShell Principal Developer Bruce Payette (@BrucePayette) said that you can call the Where method without parentheses.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"June Blender\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"DEV SAPIEN Blog - Tools for IT Success\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Calling a method without parentheses - DEV SAPIEN Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Late breaking news from PowerShell Conference Europe 2016!! During PowerShell MVP Chrissy LeMaire&#039;s (@cl) knockout session at PowerShell Conference Europe 2016, &quot;My Journey to 200,000 Rows a Second&quot; (don&#039;t miss the recording; I&#039;ll tweet as soon as it&#039;s available), PowerShell Principal Developer Bruce Payette (@BrucePayette) said that you can call the Where method without parentheses.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-04-22T16:56:37+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2016-04-23T21:47:39+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Calling a method without parentheses - DEV SAPIEN Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Late breaking news from PowerShell Conference Europe 2016!! During PowerShell MVP Chrissy LeMaire&#039;s (@cl) knockout session at PowerShell Conference Europe 2016, &quot;My Journey to 200,000 Rows a Second&quot; (don&#039;t miss the recording; I&#039;ll tweet as soon as it&#039;s available), PowerShell Principal Developer Bruce Payette (@BrucePayette) said that you can call the Where method without parentheses.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/04\\\/22\\\/calling-a-method-without-parentheses\\\/#blogposting\",\"name\":\"Calling a method without parentheses - DEV SAPIEN Blog\",\"headline\":\"Calling a method without parentheses\",\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.sapien.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/04\\\/20160422_185053-300x169.jpg\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/04\\\/22\\\/calling-a-method-without-parentheses\\\/#articleImage\"},\"datePublished\":\"2016-04-22T09:56:37-07:00\",\"dateModified\":\"2016-04-23T14:47:39-07:00\",\"inLanguage\":\"en-US\",\"commentCount\":26,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/04\\\/22\\\/calling-a-method-without-parentheses\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/04\\\/22\\\/calling-a-method-without-parentheses\\\/#webpage\"},\"articleSection\":\"Ask the Experts, Scripting, Tip, methods, Out-Null, PowerShell 4.0, PowerShell Conference Europe 2016\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/04\\\/22\\\/calling-a-method-without-parentheses\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/ask-the-experts\\\/#listItem\",\"name\":\"Ask the Experts\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/ask-the-experts\\\/#listItem\",\"position\":2,\"name\":\"Ask the Experts\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/ask-the-experts\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/04\\\/22\\\/calling-a-method-without-parentheses\\\/#listItem\",\"name\":\"Calling a method without parentheses\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/04\\\/22\\\/calling-a-method-without-parentheses\\\/#listItem\",\"position\":3,\"name\":\"Calling a method without parentheses\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/ask-the-experts\\\/#listItem\",\"name\":\"Ask the Experts\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\",\"name\":\"DEV SAPIEN Blog\",\"description\":\"Tools for IT Success\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/#author\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/\",\"name\":\"June Blender\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/04\\\/22\\\/calling-a-method-without-parentheses\\\/#webpage\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/04\\\/22\\\/calling-a-method-without-parentheses\\\/\",\"name\":\"Calling a method without parentheses - DEV SAPIEN Blog\",\"description\":\"Late breaking news from PowerShell Conference Europe 2016!! During PowerShell MVP Chrissy LeMaire's (@cl) knockout session at PowerShell Conference Europe 2016, \\\"My Journey to 200,000 Rows a Second\\\" (don't miss the recording; I'll tweet as soon as it's available), PowerShell Principal Developer Bruce Payette (@BrucePayette) said that you can call the Where method without parentheses.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/04\\\/22\\\/calling-a-method-without-parentheses\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/#author\"},\"datePublished\":\"2016-04-22T09:56:37-07:00\",\"dateModified\":\"2016-04-23T14:47:39-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/\",\"name\":\"DEV SAPIEN Blog\",\"description\":\"Tools for IT Success\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Calling a method without parentheses - DEV SAPIEN Blog","description":"Late breaking news from PowerShell Conference Europe 2016!! During PowerShell MVP Chrissy LeMaire's (@cl) knockout session at PowerShell Conference Europe 2016, \"My Journey to 200,000 Rows a Second\" (don't miss the recording; I'll tweet as soon as it's available), PowerShell Principal Developer Bruce Payette (@BrucePayette) said that you can call the Where method without parentheses.","canonical_url":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/#blogposting","name":"Calling a method without parentheses - DEV SAPIEN Blog","headline":"Calling a method without parentheses","author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/#author"},"publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2016\/04\/20160422_185053-300x169.jpg","@id":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/#articleImage"},"datePublished":"2016-04-22T09:56:37-07:00","dateModified":"2016-04-23T14:47:39-07:00","inLanguage":"en-US","commentCount":26,"mainEntityOfPage":{"@id":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/#webpage"},"isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/#webpage"},"articleSection":"Ask the Experts, Scripting, Tip, methods, Out-Null, PowerShell 4.0, PowerShell Conference Europe 2016"},{"@type":"BreadcrumbList","@id":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/dev.sapien.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/ask-the-experts\/#listItem","name":"Ask the Experts"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/ask-the-experts\/#listItem","position":2,"name":"Ask the Experts","item":"https:\/\/dev.sapien.com\/blog\/topics\/ask-the-experts\/","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/#listItem","name":"Calling a method without parentheses"},"previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/#listItem","position":3,"name":"Calling a method without parentheses","previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/ask-the-experts\/#listItem","name":"Ask the Experts"}}]},{"@type":"Organization","@id":"https:\/\/dev.sapien.com\/blog\/#organization","name":"DEV SAPIEN Blog","description":"Tools for IT Success","url":"https:\/\/dev.sapien.com\/blog\/"},{"@type":"Person","@id":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/#author","url":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/","name":"June Blender"},{"@type":"WebPage","@id":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/#webpage","url":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/","name":"Calling a method without parentheses - DEV SAPIEN Blog","description":"Late breaking news from PowerShell Conference Europe 2016!! During PowerShell MVP Chrissy LeMaire's (@cl) knockout session at PowerShell Conference Europe 2016, \"My Journey to 200,000 Rows a Second\" (don't miss the recording; I'll tweet as soon as it's available), PowerShell Principal Developer Bruce Payette (@BrucePayette) said that you can call the Where method without parentheses.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/#breadcrumblist"},"author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/#author"},"creator":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/#author"},"datePublished":"2016-04-22T09:56:37-07:00","dateModified":"2016-04-23T14:47:39-07:00"},{"@type":"WebSite","@id":"https:\/\/dev.sapien.com\/blog\/#website","url":"https:\/\/dev.sapien.com\/blog\/","name":"DEV SAPIEN Blog","description":"Tools for IT Success","inLanguage":"en-US","publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"DEV SAPIEN Blog - Tools for IT Success","og:type":"article","og:title":"Calling a method without parentheses - DEV SAPIEN Blog","og:description":"Late breaking news from PowerShell Conference Europe 2016!! During PowerShell MVP Chrissy LeMaire's (@cl) knockout session at PowerShell Conference Europe 2016, &quot;My Journey to 200,000 Rows a Second&quot; (don't miss the recording; I'll tweet as soon as it's available), PowerShell Principal Developer Bruce Payette (@BrucePayette) said that you can call the Where method without parentheses.","og:url":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/","article:published_time":"2016-04-22T16:56:37+00:00","article:modified_time":"2016-04-23T21:47:39+00:00","twitter:card":"summary_large_image","twitter:title":"Calling a method without parentheses - DEV SAPIEN Blog","twitter:description":"Late breaking news from PowerShell Conference Europe 2016!! During PowerShell MVP Chrissy LeMaire's (@cl) knockout session at PowerShell Conference Europe 2016, &quot;My Journey to 200,000 Rows a Second&quot; (don't miss the recording; I'll tweet as soon as it's available), PowerShell Principal Developer Bruce Payette (@BrucePayette) said that you can call the Where method without parentheses."},"aioseo_meta_data":{"post_id":"11831","title":null,"description":null,"keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-08-28 16:00:32","updated":"2026-08-28 16:00:32"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\/topics\/ask-the-experts\/\" title=\"Ask the Experts\">Ask the Experts<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCalling a method without parentheses\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/dev.sapien.com\/blog"},{"label":"Ask the Experts","link":"https:\/\/dev.sapien.com\/blog\/topics\/ask-the-experts\/"},{"label":"Calling a method without parentheses","link":"https:\/\/dev.sapien.com\/blog\/2016\/04\/22\/calling-a-method-without-parentheses\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/11831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=11831"}],"version-history":[{"count":21,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/11831\/revisions"}],"predecessor-version":[{"id":11855,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/11831\/revisions\/11855"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=11831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=11831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=11831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}