Пример #1
0
        private static IEnumerable<Constant> ZeroFill( ITypeRef elementType, int len, IList<Constant> values)
        {
            foreach( var value in values )
            {
                yield return value;
            }

            var zeroVal = elementType.GetNullValue( );
            for( int i = values.Count; i < len; ++i )
            {
                yield return zeroVal;
            }
        }