private void CreateCountImpl(IIntermediateClassType resultClass, IInterfacePropertyMember countProp)
        {
            var countProperty = resultClass.Properties.Add(new TypedName("Count", RuntimeCoreType.Int32, this.assembly.IdentityManager), true, false);

            countProperty.SummaryText = string.Format("Returns the @s:Int32; value which denotes the number of elements within the @s:{0};", resultClass.Name);
            countProperty.GetMethod.Return(countProp.GetReference(this.InternalStreamImpl.GetReference()));
            countProperty.AccessLevel = AccessLevelModifiers.Public;
            this.CountImpl            = countProperty;
        }
 public static IYieldReturnStatement YieldReturn(this IBlockStatementParent blockParent, IInterfacePropertyMember returnValue)
 {
     return(blockParent.YieldReturn((IExpression)returnValue.GetReference()));
 }
 public static IReturnStatement Return(this IBlockStatementParent blockParent, IInterfacePropertyMember returnValue)
 {
     return(blockParent.Return(returnValue.GetReference()));
 }