c# - Anonymous methods with return type in .Net -
This is really a question for my curiosity because I know there are other ways of working around the problem.
There is a property on my "item" class- "mipartatite" - which I want to evaluate through the collection I want to repeat - "My item collection" - and if there is an "item" square The property which is not "MyProperty" is nothing, I have to set a Boolean flag to inform that any of the collection includes a non-faucet microprocessor, its "item" objects.
Pure ContainsPF = Function () (MyItemCollectionImage.MyPropertyInot Nothing Selection Item as Item From This ITEM). Count & gt; 0
This gives me the warning of "no convertible expression", as in 'section; Object type is assumed ', so I tried
Boolean = function as private content (POF) (MyItemCollection as item from this item where item. MyProperty IsNot is nothing Select items). Count & gt; 0 subc). Mount & gt; 0
Although this can not be converted into 'boolean' of long expression "boolean" is not a representative type "
Does this function anyway Protecting the type of refund or should I just use a different method (an old style function)?
Thank you.
I think you want to declare it as As far as I can Am See that although the property (according to its first paragraph) is not making it why not declare it as a general asset? Func (Boolean key) Instead of:
Private container PF (boolean key) as funnel = [...]
Comments
Post a Comment