Skip to content

Files

Latest commit

 

History

History
29 lines (18 loc) · 640 Bytes

AvoidInvokingEmptyMembers.md

File metadata and controls

29 lines (18 loc) · 640 Bytes

Pattern: Invoking empty member

Issue: -

Description

Invoking non-constant members can cause potential bugs. Please double check the syntax to make sure that invoked members are constants.

How

Provide the requested members for a given type or class.

Example of incorrect code:

$MyString = "abc"
$MyString.('len'+'gth')

Example of correct code:

$MyString = "abc"
$MyString.('length')

Further Reading